Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Tokunori Ikegami <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
- Loading branch information