]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: usb: rtl8150 fix unintiatilzed variables in rtl8150_get_link_ksettings
authorOliver Neukum <oneukum@suse.com>
Wed, 19 Jun 2024 13:28:03 +0000 (15:28 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jun 2024 14:15:17 +0000 (07:15 -0700)
commitfba383985354e83474f95f36d7c65feb75dba19d
treeaa089db94c12b7ca88f73dd6f94455e154a3b8f2
parent48dea8f7bb011608fd969749a1980f8311ef45f2
net: usb: rtl8150 fix unintiatilzed variables in rtl8150_get_link_ksettings

This functions retrieves values by passing a pointer. As the function
that retrieves them can fail before touching the pointers, the variables
must be initialized.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: syzbot+5186630949e3c55f0799@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20240619132816.11526-1-oneukum@suse.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/rtl8150.c