]> 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)
commitc28d9a285668c799eeae2f7f93e929a6028a4d6d
tree041736eedabc0d754aa0e4fe137127f31b505561
parentf961134a612c793d5901a93d85a29337c74af978
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: a9a51bd727d1 ("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