Skip to content
Commit 224c0497 authored by Denis Kirjanov's avatar Denis Kirjanov Committed by David S. Miller
Browse files

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



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>
parent 4da5f001
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