Files
linux/drivers/misc/mei
Dan Carpenter aad783193f 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:36:40 +02:00
..
2017-01-09 08:32:20 +01:00
2016-09-05 08:04:07 +02:00
2015-08-03 17:33:54 -07:00
2014-05-03 19:21:22 -04:00
2014-09-29 11:56:02 -04:00
2018-09-05 09:20:05 +02:00