linux-sg2042/drivers/net/ieee802154
Alexey Khoroshilov 8c2dd54485 ieee802154: fix error handling in ieee802154fake_probe()
In case of any failure ieee802154fake_probe() just calls unregister_netdev().
But it does not look safe to unregister netdevice before it was registered.

The patch implements straightforward resource deallocation in case of
failure in ieee802154fake_probe().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-16 14:45:14 -05:00
..
Kconfig at86rf230: add regmap support 2014-07-07 21:29:24 -07:00
Makefile ieee802154: cc2520: add driver to kernel build system 2014-06-22 21:31:59 -07:00
at86rf230.c at86rf230: add new author 2014-07-07 21:29:25 -07:00
cc2520.c ieee802154: cc2520: adds driver for TI CC2520 radio 2014-06-22 21:31:58 -07:00
fakehard.c ieee802154: fix error handling in ieee802154fake_probe() 2014-11-16 14:45:14 -05:00
fakelb.c ieee802154: Introduce the use of the managed version of kzalloc 2014-05-21 16:29:52 -04:00
mrf24j40.c mrf24j40: use pr_* / dev_* instead of printk() 2014-09-24 14:14:42 +02:00