]> git.baikalelectronics.ru Git - kernel.git/commit
ax88172a: fix ax88172a_unbind() failures
authorGeorge Kennedy <george.kennedy@oracle.com>
Wed, 15 Jul 2020 13:59:31 +0000 (09:59 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Jul 2020 01:26:29 +0000 (18:26 -0700)
commit43577af9a8a367f9d63586fabaf3fdf2af3530d7
tree041736eedabc0d754aa0e4fe137127f31b505561
parent5537adf178b78c432e6dd9623a2c3549e6dc5644
ax88172a: fix ax88172a_unbind() failures

If ax88172a_unbind() fails, make sure that the return code is
less than zero so that cleanup is done properly and avoid UAF.

Fixes: 58075a4444d4 ("ax88172a: fix information leak on short answers")
Signed-off-by: George Kennedy <george.kennedy@oracle.com>
Reported-by: syzbot+4cd84f527bf4a10fc9c1@syzkaller.appspotmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/ax88172a.c