android_kernel_lge_bullhead/drivers/misc/mei
Alexander Usyskin 2ef7229277 mei: bus: fix received data size check in NFC fixup
commit 582ab27a063a506ccb55fc48afcc325342a2deba upstream.

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

[js] the check is in 3.12 only once

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: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2017-02-10 11:04:04 +01:00
..
Kconfig mei: move mei-me to separate module 2013-03-29 08:32:21 -07:00
Makefile mei: nfc: Initial nfc implementation 2013-04-10 18:56:53 -07:00
amthif.c mei: cancel stall timers in mei_reset 2013-10-05 07:13:10 -07:00
bus.c mei: bus: fix possible boundaries violation 2014-11-21 09:22:55 -08:00
client.c mei: reset client state on queued connect request 2014-09-05 16:28:36 -07:00
client.h mei: bus: stop wait for read during cl state transition 2013-10-05 07:13:10 -07:00
debugfs.c mei: convert to use simple_open() 2013-04-11 12:39:01 -07:00
hbm.c mei: make me client counters less error prone 2013-10-05 07:13:10 -07:00
hbm.h mei: revamp hbm state machine 2013-04-19 10:58:21 -07:00
hw-me-regs.h mei: me: do not load the driver if the FW doesn't support MEI interface 2014-05-06 07:55:27 -07:00
hw-me.c mei: me: fix hw ready reset flow 2014-07-06 18:54:15 -07:00
hw-me.h mei: revamp mei_data2slots 2013-03-15 11:10:48 -07:00
hw.h mei: simplify preparing client host bus messages 2013-01-07 10:31:29 -08:00
init.c mei: cancel stall timers in mei_reset 2013-10-05 07:13:10 -07:00
interrupt.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-04-30 09:36:50 -07:00
main.c mei: bus: stop wait for read during cl state transition 2013-10-05 07:13:10 -07:00
mei_dev.h mei: make me client counters less error prone 2013-10-05 07:13:10 -07:00
nfc.c mei: bus: fix received data size check in NFC fixup 2017-02-10 11:04:04 +01:00
pci-me.c mei: me: do not load the driver if the FW doesn't support MEI interface 2014-05-06 07:55:27 -07:00
wd.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-04-30 09:36:50 -07:00