Commit c6486e73 authored by Denis Kirjanov's avatar Denis Kirjanov Committed by Xie XiuQi
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>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 4400c731
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment