Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8511748b authored by Dan Carpenter's avatar Dan Carpenter Committed by Anton Vorontsov
Browse files

ds2782_battery: Fix signedness bug in ds278x_read_reg16()



We need to check for negative values before doing the swab16() for the
error handling to work.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAnton Vorontsov <anton.vorontsov@linaro.org>
parent 08d816b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment