diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-08-14 12:12:36 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-08-26 17:45:25 -0700 |
commit | 9d19371df50a73301aec66a479b490587e889055 (patch) | |
tree | b3009695670dbd78f3d4ef432cab619f6604d78e /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 3ad867001c91657c46dcf6656d52eb6080286fd5 (diff) |
hwmon: (adt7475) Potential error pointer dereferences
The adt7475_update_device() function returns error pointers. The
problem is that in show_pwmfreq() we dereference it before the check.
And then in pwm_use_point2_pwm_at_crit_show() there isn't a check at
all. I don't know if it's required, but it silences a static checker
warning and it's doesn't hurt anything to check.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Tokunori Ikegami <ikegami@allied-telesis.co.jp>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions