]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (dell-smm) Fail in ioctl I8K_BIOS_VERSION when bios version is not a number
authorPali Rohár <pali.rohar@gmail.com>
Fri, 17 Jun 2016 22:54:44 +0000 (00:54 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 18 Jun 2016 19:55:20 +0000 (12:55 -0700)
commitdc5a622d69ee4f7678379e715c9c46d46a051730
tree75c74adedf6d7f6725a3ef9466430e3f035443e4
parentac906ebd33f34471dcc16d6e467abbc77a95d2c8
hwmon: (dell-smm) Fail in ioctl I8K_BIOS_VERSION when bios version is not a number

ABI of I8K_BIOS_VERSION ioctl can return only number. But new BIOS versions
contain also other characters, which does not fit into that ABI. So in case
of non digit values return -EINVAL.

Reported-by: Mario Limonciello <Mario_Limonciello@dell.com>
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c