ieee802154: missing put_dev() on error
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 May 2014 07:53:06 +0000 (10:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 May 2014 19:54:45 +0000 (15:54 -0400)
commitb3f7a7b48f429e52f3d3dc36d253627c2a73803b
treeb2cc83f6888a57d259033290830eea1c740f9d56
parentd22adbfb39d190adb43c954ed308f2865f5e481f
ieee802154: missing put_dev() on error

We should call put_dev() on the error path here.

Fixes: 3e9c156e2c21 ('ieee802154: add netlink interfaces for llsec')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/nl-mac.c