]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: dmi_scan: Check DMI structure length
authorJean Delvare <jdelvare@suse.de>
Thu, 15 Jun 2017 11:46:01 +0000 (13:46 +0200)
committerJean Delvare <jdelvare@suse.de>
Thu, 15 Jun 2017 11:46:01 +0000 (13:46 +0200)
commit752743754a00a895053c5a51806171176ca4b69e
tree2151e7cb68fdc59acb066c603c311480e8540225
parent07894f675d3dc9387196ad268a6c8258c4ec65f0
firmware: dmi_scan: Check DMI structure length

Before accessing DMI data to record it for later, we should ensure
that the DMI structures are large enough to contain the data in
question.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
drivers/firmware/dmi_scan.c