Files
linux/drivers/net/usb
Dongliang Mu 7a9e81a676 usb: hso: fix error handling code of hso_create_net_device
commit a6ecfb39ba upstream.

The current error handling code of hso_create_net_device is
hso_free_net_device, no matter which errors lead to. For example,
WARNING in hso_free_net_device [1].

Fix this by refactoring the error handling code of
hso_create_net_device by handling different errors by different code.

[1] https://syzkaller.appspot.com/bug?id=66eff8d49af1b28370ad342787413e35bbe76efe

Reported-by: syzbot+44d53c7255bb1aea22d2@syzkaller.appspotmail.com
Fixes: 5fcfb6d0bf ("hso: fix bailout in error case of probe")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 12:02:25 +09:00
..
2016-08-31 21:07:05 -07:00
2023-05-16 11:15:31 +09:00
2013-12-06 12:37:55 -05:00
2023-05-15 14:28:25 +09:00
2017-10-08 10:26:08 +02:00
2016-09-06 13:28:10 -07:00