]> git.baikalelectronics.ru Git - kernel.git/commit
hso: fix bailout in error case of probe
authorOliver Neukum <oneukum@suse.com>
Wed, 5 Aug 2020 12:07:07 +0000 (14:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Aug 2020 00:43:38 +0000 (17:43 -0700)
commit982d2b42785d80263cc51d9d24042c55b3d64c7e
treedd5f83de27c9e2b1e1a4f92728b3f1ad9fbfc9af
parent737c4a623e832c7e6dfc3e9fa32a28a0dd91ac35
hso: fix bailout in error case of probe

The driver tries to reuse code for disconnect in case
of a failed probe.
If resources need to be freed after an error in probe, the
netdev must not be freed because it has never been registered.
Fix it by telling the helper which path we are in.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c