summaryrefslogtreecommitdiff
path: root/drivers/hwmon/pmbus
diff options
context:
space:
mode:
authorEddie James <eajames@linux.ibm.com>2022-06-28 23:30:29 +0300
committerGuenter Roeck <linux@roeck-us.net>2022-06-29 23:59:23 +0300
commit1bbb2809040a1f9c7c53c9f06c21aa83275ed27b (patch)
tree8891dc3129bf5cc7ee668c62526c6ff1de0866ba /drivers/hwmon/pmbus
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e (diff)
downloadlinux-1bbb2809040a1f9c7c53c9f06c21aa83275ed27b.tar.xz
hwmon: (occ) Prevent power cap command overwriting poll response
Currently, the response to the power cap command overwrites the first eight bytes of the poll response, since the commands use the same buffer. This means that user's get the wrong data between the time of sending the power cap and the next poll response update. Fix this by specifying a different buffer for the power cap command response. Fixes: 5b5513b88002 ("hwmon: Add On-Chip Controller (OCC) hwmon driver") Signed-off-by: Eddie James <eajames@linux.ibm.com> Link: https://lore.kernel.org/r/20220628203029.51747-1-eajames@linux.ibm.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus')
0 files changed, 0 insertions, 0 deletions