commit | 791432cfd95bea3515f8cdfaf72ec263e5d3da80 | [log] [tgz] |
---|---|---|
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | Wed Sep 16 19:32:59 2015 +0530 |
committer | Guenter Roeck <linux@roeck-us.net> | Wed Oct 14 07:57:14 2015 -0700 |
tree | 6ee42f86b2870a6956f7285aabcfd299f0597634 | |
parent | 195a4b4298a7951c845dac2b326585c66add3435 [diff] |
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: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>