]> git.baikalelectronics.ru Git - kernel.git/commit
mac802154: move dev_hold out of ieee802154_if_add
authorAlexander Aring <alex.aring@gmail.com>
Wed, 5 Nov 2014 19:51:16 +0000 (20:51 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 5 Nov 2014 20:53:03 +0000 (21:53 +0100)
commitd4e68fbc17bbc0d53bb52d331d1424dca5afb59d
tree068e842eb808e8b4d6d0653165902c63db577d59
parentfec619ee2ed0d00d81f1860d4cc60b01c1cd7ba6
mac802154: move dev_hold out of ieee802154_if_add

This patch moves the dev_hold call inside of nl-phy ieee802154_add_iface
function. The ieee802154_add_iface is the only one function which use the
ieee802154_if_add function and contains the corresponding dev_put call.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/nl-phy.c
net/mac802154/iface.c