android_kernel_xiaomi_sm8450/drivers/net/usb
Miko Larsson 525bdcb083 net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path
commit c68f345b7c425b38656e1791a0486769a8797016 upstream.

syzbot reported that act_len in kalmia_send_init_packet() is
uninitialized when passing it to the first usb_bulk_msg error path. Jiri
Pirko noted that it's pointless to pass it in the error path, and that
the value that would be printed in the second error path would be the
value of act_len from the first call to usb_bulk_msg.[1]

With this in mind, let's just not pass act_len to the usb_bulk_msg error
paths.

1: https://lore.kernel.org/lkml/Y9pY61y1nwTuzMOa@nanopsycho/

Fixes: d40261236e ("net/usb: Add Samsung Kalmia driver for Samsung GT-B3730")
Reported-and-tested-by: syzbot+cd80c5ef5121bfe85b55@syzkaller.appspotmail.com
Signed-off-by: Miko Larsson <mikoxyzzz@gmail.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-22 12:55:57 +01:00
..
aqc111.c net: usb: aqc111: Fix out-of-bounds accesses in RX fixup 2022-04-20 09:23:23 +02:00
aqc111.h
asix_common.c
asix_devices.c
asix.h
ax88172a.c
ax88179_178a.c Revert "net: usb: ax88179_178a needs FLAG_SEND_ZLP" 2022-08-21 15:16:25 +02:00
catc.c
cdc_eem.c net: cdc_eem: fix tx fixup skb leak 2021-06-23 14:42:47 +02:00
cdc_ether.c r8152: add PID for the Lenovo OneLink+ Dock 2022-10-30 09:41:16 +01:00
cdc_mbim.c net: usb: cdc_mbim: avoid altsetting toggling for Telit FN990 2022-03-08 19:09:30 +01:00
cdc_ncm.c CDC-NCM: avoid overflow in sanity checking 2022-03-02 11:42:47 +01:00
cdc_subset.c
cdc-phonet.c net: cdc-phonet: fix data-interface release on probe failure 2021-03-30 14:32:02 +02:00
ch9200.c
cx82310_eth.c
dm9601.c
gl620a.c
hso.c usb: hso: remove the bailout parameter 2021-10-06 15:56:02 +02:00
huawei_cdc_ncm.c
int51x1.c
ipheth.c ipheth: fix EOVERFLOW in ipheth_rcvbulk_callback 2022-02-05 12:37:56 +01:00
kalmia.c net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path 2023-02-22 12:55:57 +01:00
kaweth.c
Kconfig lan78xx: select CRC32 2021-10-27 09:56:48 +02:00
lan78xx.c net: usb: lan78xx: add Allied Telesis AT29M2-AF 2021-12-29 12:25:53 +01:00
lan78xx.h
lg-vl600.c
Makefile
mcs7830.c net: mcs7830: handle usb read errors properly 2022-01-27 10:54:04 +01:00
net1080.c
pegasus.c net: usb: pegasus: Do not drop long Ethernet frames 2022-01-05 12:40:30 +01:00
pegasus.h
plusb.c net: USB: Fix wrong-direction WARNING in plusb.c 2023-02-15 17:22:26 +01:00
qmi_wwan.c net: usb: qmi_wwan: add u-blox 0x1342 composition 2022-12-14 11:31:54 +01:00
r8152.c r8152: add PID for the Lenovo OneLink+ Dock 2022-10-30 09:41:16 +01:00
rndis_host.c usb: rndis_host: Secure rndis_query check against int overflow 2023-01-14 10:16:48 +01:00
rtl8150.c
sierra_net.c
smsc75xx.c net: usb: fix possible use-after-free in smsc75xx_bind 2021-06-23 14:42:46 +02:00
smsc75xx.h
smsc95xx.c usbnet: smsc95xx: Fix deadlock on runtime resume 2022-11-25 17:45:54 +01:00
smsc95xx.h
sr9700.c net: usb: sr9700: Handle negative len 2023-02-01 08:23:13 +01:00
sr9700.h
sr9800.c
sr9800.h
usbnet.c usbnet: Fix memory leak in usbnet_disconnect() 2022-10-05 10:38:42 +02:00
zaurus.c USB: zaurus: support another broken Zaurus 2022-03-02 11:42:47 +01:00