nl802154: fix Oops in ieee802154_nl_get_dev
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 19 Jun 2009 13:00:08 +0000 (17:00 +0400)
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Mon, 29 Jun 2009 14:20:27 +0000 (18:20 +0400)
commit932c1329acebc03ef5efa3647c9c3a967b59d0c4
treec0e281f5074ea0e655543eba8a766d0fe500c8bd
parente0af6062aa4f89081afb8a1a4269605775d354de
nl802154: fix Oops in ieee802154_nl_get_dev

ieee802154_nl_get_dev() lacks check for the existance of the device
that was returned by dev_get_XXX, thus resulting in Oops for non-existing
devices. Fix it.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
net/ieee802154/netlink.c