[PATCH AUTOSEL for 3.18 032/101] firmware: dmi_scan: Check DMI structure length

2018-04-08 Thread Sasha Levin
From: Jean Delvare [ Upstream commit a814c3597a6b6040e2ef9459748081a6d5b7312d ] 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

[PATCH AUTOSEL for 3.18 032/101] firmware: dmi_scan: Check DMI structure length

2018-04-08 Thread Sasha Levin
From: Jean Delvare [ Upstream commit a814c3597a6b6040e2ef9459748081a6d5b7312d ] 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 Reviewed-by: Mika Westerberg Cc: Dmitry