diff options
author | Vadim Pasternak <vadimp@mellanox.com> | 2019-02-18 19:54:40 +0000 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-02-18 14:22:52 -0800 |
commit | ff066653aeed8ee2d4dadb1e35774dd91ecbb19f (patch) | |
tree | 34c5669eb9b7ef2a4efaebd2bff9898a36be335b /drivers/hwmon/dell-smm-hwmon.c | |
parent | a3b22b9f11d9fbc48b0291ea92259a5a810e9438 (diff) | |
download | lwn-ff066653aeed8ee2d4dadb1e35774dd91ecbb19f.tar.gz lwn-ff066653aeed8ee2d4dadb1e35774dd91ecbb19f.zip |
hwmon: (pmbus/tps53679) Fix driver info initialization in probe routine
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>
Diffstat (limited to 'drivers/hwmon/dell-smm-hwmon.c')
0 files changed, 0 insertions, 0 deletions