summaryrefslogtreecommitdiff
path: root/drivers/hwmon/hwmon-vid.c
diff options
context:
space:
mode:
authorVadim Pasternak <vadimp@mellanox.com>2019-02-18 22:54:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-27 16:50:24 +0300
commitdd19e541758882a2aea3f85412c0ba61b6481056 (patch)
tree0bc0001799fd629c12a5349d10d5908c656a70ec /drivers/hwmon/hwmon-vid.c
parentc8fa33f8315353035dece3e3ff24e4b21b05b5b0 (diff)
downloadlinux-dd19e541758882a2aea3f85412c0ba61b6481056.tar.xz
hwmon: (pmbus/tps53679) Fix driver info initialization in probe routine
[ Upstream commit ff066653aeed8ee2d4dadb1e35774dd91ecbb19f ] Fix tps53679_probe() by using dynamically allocated "pmbus_driver_info" structure instead of static. Usage of static structures causes overwritten of the field "vrm_version", in case the system is equipped with several tps53679 devices with the different "vrm_version". In such case the last probed device overwrites this field for all others. Fixes: 610526527a13 ("hwmon: (pmbus) Add support for Texas Instruments tps53679 device") Signed-off-by: Vadim Pasternak <vadimp@mellanox.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon/hwmon-vid.c')
0 files changed, 0 insertions, 0 deletions