Skip to content
Commit e0ad7a0c authored by Denis Kirjanov's avatar Denis Kirjanov Committed by Sasha Levin
Browse files

net: usb: pegasus: fix improper read if get_registers() fail

commit 224c0497

 upstream.

get_registers() may fail with -ENOMEM and in this
case we can read a garbage from the status variable tmp.

Reported-by: default avatar <syzbot+3499a83b2d062ae409d4@syzkaller.appspotmail.com>
Signed-off-by: default avatarDenis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a2fa005
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