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

Skip to content
Commit 791432cf authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Guenter Roeck
Browse files

hwmon: (max31790) Fix dereference of ERR_PTR



max31790_update_device() return the error code in ERR_PTR. We were
checking if it has returned error or not but before checking we have
dereferenced it.

Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 195a4b42
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment