summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/max197.c
diff options
context:
space:
mode:
authorEddie James <eajames@linux.ibm.com>2020-01-07 16:40:40 +0100
committerGuenter Roeck <linux@roeck-us.net>2020-01-23 22:15:10 +0100
commitd9c8ae69b9962197883f79c7df3fd562cc52b21a (patch)
tree43ebf331dc34a603177768f2fc54712f64aa4bc3 /drivers/hwmon/max197.c
parenthwmon: (w83627ehf) Remove set but not used variable 'fan4min' (diff)
downloadlinux-d9c8ae69b9962197883f79c7df3fd562cc52b21a.tar.xz
linux-d9c8ae69b9962197883f79c7df3fd562cc52b21a.zip
hwmon: (pmbus/ibm-cffps) Prevent writing on_off_config with bad data
If the user write parameters resulted in no bytes being written to the temporary buffer, then ON_OFF_CONFIG will be written with uninitialized data. Prevent this by bailing out in this case. Signed-off-by: Eddie James <eajames@linux.ibm.com> Link: https://lore.kernel.org/r/1578411640-16929-1-git-send-email-eajames@linux.ibm.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/max197.c')
0 files changed, 0 insertions, 0 deletions