linux/drivers/net/usb
Miko Larsson 02df3170c0 net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path
commit c68f345b7c 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:59:52 +01:00
..
aqc111.c net: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:07 -07:00
aqc111.h
asix_common.c net: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:07 -07:00
asix_devices.c net: asix: ax88772: add ethtool pause configuration 2022-08-26 10:00:52 +01:00
asix.h net: asix: ax88772: migrate to phylink 2022-08-26 10:00:52 +01:00
ax88172a.c
ax88179_178a.c
catc.c net: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:07 -07:00
cdc_eem.c
cdc_ether.c net: usb: cdc_ether: add support for Thales Cinterion PLS62-W modem 2023-02-01 08:34:29 +01:00
cdc_mbim.c
cdc_ncm.c net/cdc_ncm: Fix multicast RX support for CDC NCM devices with ZLP 2022-11-23 13:46:42 +00:00
cdc_subset.c
cdc-phonet.c
ch9200.c
cx82310_eth.c
dm9601.c
gl620a.c
hso.c tty: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
huawei_cdc_ncm.c
int51x1.c
ipheth.c
kalmia.c net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path 2023-02-22 12:59:52 +01:00
kaweth.c
Kconfig net: asix: ax88772: migrate to phylink 2022-08-26 10:00:52 +01:00
lan78xx.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
lan78xx.h
lg-vl600.c
Makefile
mcs7830.c
net1080.c
pegasus.c net: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:07 -07:00
pegasus.h
plusb.c net: USB: Fix wrong-direction WARNING in plusb.c 2023-02-14 19:11:51 +01:00
qmi_wwan.c net: usb: qmi_wwan: add u-blox 0x1342 composition 2022-11-23 12:47:54 +00:00
r8152.c r8152: add vendor/device ID pair for Microsoft Devkit 2023-02-01 08:34:32 +01:00
r8153_ecm.c
rndis_host.c usb: rndis_host: Secure rndis_query check against int overflow 2023-01-12 12:02:29 +01:00
rtl8150.c net: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:07 -07:00
sierra_net.c net: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:07 -07:00
smsc75xx.c
smsc75xx.h
smsc95xx.c net: usb: smsc95xx: fix external PHY reset 2022-11-17 10:38:37 +01:00
smsc95xx.h
sr9700.c net: usb: sr9700: Handle negative len 2023-02-01 08:34:19 +01:00
sr9700.h
sr9800.c
sr9800.h
usbnet.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-09-29 14:30:51 -07:00
zaurus.c