linux/drivers/net/ieee802154
Alexey Khoroshilov 9651298e6d ieee802154: fix error handling in ieee802154fake_probe()
commit 8c2dd54485 upstream.

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>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2014-12-01 10:02:09 +00:00
..
at86rf230.c at86rf230: fix irq setup 2014-06-22 18:04:03 -07:00
fakehard.c ieee802154: fix error handling in ieee802154fake_probe() 2014-12-01 10:02:09 +00:00
fakelb.c ieee802154: Introduce the use of the managed version of kzalloc 2014-05-21 16:29:52 -04:00
Kconfig ieee802154: at86rf230: add support for rf233 chip 2014-03-12 00:05:36 -04:00
Makefile ieee802154: MRF24J40 driver 2012-09-04 14:43:55 -04:00
mrf24j40.c mrf24j40: add device managed APIs 2014-06-11 15:39:19 -07:00