Files
linux/drivers/misc/mei
Dan Carpenter 29068d2971 mei: bus: type promotion bug in mei_nfc_if_version()
commit b40b3e9358 upstream.

We accidentally removed the check for negative returns
without considering the issue of type promotion.
The "if_version_length" variable is type size_t so if __mei_cl_recv()
returns a negative then "bytes_recv" is type promoted
to a high positive value and treated as success.

Cc: <stable@vger.kernel.org>
Fixes: 582ab27a06 ("mei: bus: fix received data size check in NFC fixup")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:38:14 +02:00
..
2017-04-08 17:38:25 +02:00
2017-04-08 17:38:25 +02:00
2014-05-03 19:21:22 -04:00
2017-05-25 18:24:03 +02:00
2017-06-13 15:46:18 +02:00
2018-09-05 09:26:33 +02:00
2017-05-25 18:24:03 +02:00