commit | d9c8ae69b9962197883f79c7df3fd562cc52b21a | [log] [tgz] |
---|---|---|
author | Eddie James <eajames@linux.ibm.com> | Tue Jan 07 09:40:40 2020 -0600 |
committer | Guenter Roeck <linux@roeck-us.net> | Thu Jan 23 13:15:10 2020 -0800 |
tree | 43ebf331dc34a603177768f2fc54712f64aa4bc3 | |
parent | 392923715d8b0bbb7e72567fd4090e92bd5a9a3b [diff] |
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>