linux-uconsole/drivers/net/usb
Dan Carpenter 4c62337d8f 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:19:10 +01:00
..
asix.h
asix_common.c
asix_devices.c net: usb: asix: init MAC address buffers 2019-07-26 09:14:15 +02:00
ax88172a.c ax88172a: fix information leak on short answers 2019-11-20 18:45:11 +01:00
ax88179_178a.c
catc.c
cdc-phonet.c
cdc_eem.c
cdc_ether.c r8152: add device id for Lenovo ThinkPad USB-C Dock Gen 2 2019-11-10 11:27:54 +01:00
cdc_mbim.c
cdc_ncm.c net: cdc_ncm: Signedness bug in cdc_ncm_set_dgram_size() 2019-11-24 08:19:10 +01:00
cdc_subset.c
ch9200.c
cx82310_eth.c cx82310_eth: fix a memory leak bug 2019-09-10 10:33:47 +01:00
dm9601.c
gl620a.c
hso.c hso: fix NULL-deref on tty open 2019-10-07 18:57:20 +02:00
huawei_cdc_ncm.c
int51x1.c
ipheth.c usbnet: ipheth: fix racing condition 2019-06-19 08:18:04 +02:00
kalmia.c net: kalmia: fix memory leaks 2019-09-10 10:33:48 +01:00
kaweth.c
Kconfig
lan78xx.c net: lan78xx: Bail out if lan78xx_get_endpoints fails 2019-11-20 18:45:58 +01:00
lan78xx.h
lg-vl600.c
Makefile
mcs7830.c
net1080.c
pegasus.c net: usb: pegasus: fix improper read if get_registers() fail 2019-08-25 10:47:50 +02:00
pegasus.h
plusb.c
qmi_wwan.c net: usb: qmi_wwan: add support for Foxconn T77W968 LTE modules 2019-11-20 18:45:12 +01:00
r8152.c r8152: add device id for Lenovo ThinkPad USB-C Dock Gen 2 2019-11-10 11:27:54 +01:00
rndis_host.c
rtl8150.c
sierra_net.c
smsc75xx.c
smsc75xx.h
smsc95xx.c usbnet: smsc95xx: fix rx packet alignment 2019-02-12 19:47:00 +01:00
smsc95xx.h
sr9700.c
sr9700.h
sr9800.c net: usb: sr9800: fix uninitialized local variable 2019-11-06 13:06:26 +01:00
sr9800.h
usbnet.c usbnet: sanity checking of packet sizes and device mtu 2019-10-05 13:09:30 +02:00
zaurus.c