Skip to content
Commit 77b6d09f authored by Valentin Vidic's avatar Valentin Vidic Committed by David S. Miller
Browse files

net: usb: sr9800: fix uninitialized local variable



Make sure res does not contain random value if the call to
sr_read_cmd fails for some reason.

Reported-by: default avatar <syzbot+f1842130bbcfb335bac1@syzkaller.appspotmail.com>
Signed-off-by: default avatarValentin Vidic <vvidic@valentin-vidic.from.hr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent efb86fed
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment