From: Alexey Khoroshilov Date: Fri, 14 Nov 2014 23:11:59 +0000 (+0300) Subject: ieee802154: fix error handling in ieee802154fake_probe() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~83^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c2dd54485ccee7fc4086611e188478584758c8d;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed