Files
linux/drivers/net/usb
Dan Carpenter a4ead70898 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-24 08:22:45 +01:00
..
2019-10-07 18:55:16 +02:00
2019-06-19 08:20:58 +02:00
2019-09-10 10:32:16 +01:00
2017-04-25 10:08:16 -04:00
2017-06-16 11:48:40 -04:00
2017-04-25 10:08:16 -04:00
2017-06-16 11:48:40 -04:00