6lowpan: release device on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Nov 2013 07:44:45 +0000 (10:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2013 00:11:13 +0000 (19:11 -0500)
commit78032f9b3eae3a43da9468d8ce30caa6be84f89d
tree3eb96687bd577dba60c5afeaef4fef27c5715af1
parenteb072c4b8da0ba87bc870c7911aae180bae34d4a
6lowpan: release device on error path

We recently added a new error path and it needs a dev_put().

Fixes: 7adac1ec8198 ('6lowpan: Only make 6lowpan links to IEEE802154 devices')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c