]> git.itanic.dy.fi Git - linux-stable/commit
staging: rtl8712: handle firmware load failure
authorRustam Kovhaev <rkovhaev@gmail.com>
Thu, 16 Jul 2020 15:13:26 +0000 (08:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jul 2020 10:08:44 +0000 (12:08 +0200)
commitb4383c971bc5263efe2b0915ba67ebf2bf3f1ee5
tree888caaba0e4c41e3be3b84e01e789e0e12e1e67f
parentc4283950a9a4d3bf4a3f362e406c80ab14f10714
staging: rtl8712: handle firmware load failure

when firmware fails to load we should not call unregister_netdev()
this patch fixes a race condition between rtl871x_load_fw_cb() and
r871xu_dev_remove() and fixes the bug reported by syzbot

Reported-by: syzbot+80899a8a8efe8968cde7@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?extid=80899a8a8efe8968cde7
Signed-off-by: Rustam Kovhaev <rkovhaev@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200716151324.1036204-1-rkovhaev@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/hal_init.c
drivers/staging/rtl8712/usb_intf.c