linux-stable/drivers/misc/mei
Alexander Usyskin 582ab27a06 mei: bus: fix received data size check in NFC fixup
NFC version reply size checked against only header size, not against
full message size. That may lead potentially to uninitialized memory access
in version data.

That leads to warnings when version data is accessed:
drivers/misc/mei/bus-fixup.c: warning: '*((void *)&ver+11)' may be used uninitialized in this function [-Wuninitialized]:  => 212:2

Reported in
Build regressions/improvements in v4.9-rc3
https://lkml.org/lkml/2016/10/30/57

Fixes: 59fcd7c63a (mei: nfc: Initial nfc implementation)
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-31 10:25:22 -06:00
..
amthif.c mei: stop the stall timer worker if not needed 2016-09-27 12:33:47 +02:00
bus-fixup.c mei: bus: fix received data size check in NFC fixup 2016-10-31 10:25:22 -06:00
bus.c
client.c mei: stop the stall timer worker if not needed 2016-09-27 12:33:47 +02:00
client.h
debugfs.c
hbm.c mei: stop the stall timer worker if not needed 2016-09-27 12:33:47 +02:00
hbm.h
hw-me-regs.h
hw-me.c
hw-me.h
hw-txe-regs.h
hw-txe.c mei: txe: don't clean an unprocessed interrupt cause. 2016-10-24 19:38:39 +02:00
hw-txe.h
hw.h
init.c mei: stop the stall timer worker if not needed 2016-09-27 12:33:47 +02:00
interrupt.c mei: stop the stall timer worker if not needed 2016-09-27 12:33:47 +02:00
Kconfig
main.c
Makefile
mei-trace.c
mei-trace.h
mei_dev.h mei: stop the stall timer worker if not needed 2016-09-27 12:33:47 +02:00
pci-me.c mei: stop the stall timer worker if not needed 2016-09-27 12:33:47 +02:00
pci-txe.c