Files
linux/drivers
Dan Carpenter 4a4c61759b net: cdc_ncm: Signedness bug in cdc_ncm_set_dgram_size()
commit a56dcc6b45 upstream.

This code is supposed to test for negative error codes and partial
reads, but because sizeof() is size_t (unsigned) type then negative
error codes are type promoted to high positive values and the condition
doesn't work as expected.

Fixes: 332f989a3b ("CDC-NCM: handle incomplete transfer of MTU")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-25 09:53:10 +01:00
..
2019-10-05 12:30:36 +02:00
2018-12-21 14:11:37 +01:00
2019-05-14 19:19:34 +02:00
2017-09-09 17:39:41 +02:00
2019-10-07 18:53:16 +02:00
2019-11-12 19:15:40 +01:00
2018-12-21 14:11:36 +01:00
2018-11-13 11:17:02 -08:00
2018-11-27 16:09:41 +01:00
2018-10-03 17:01:42 -07:00
2019-09-16 08:19:34 +02:00
2019-05-31 06:48:15 -07:00
2019-10-17 13:42:10 -07:00