summaryrefslogtreecommitdiffstats
path: root/net/ieee802154/6lowpan/rx.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-08-15 11:00:32 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-08-15 23:28:09 +0200
commit0751272880f3a0c74c786ecfaba2b3d98748482f (patch)
tree9ee572eb7c60aaadb841686c2a2eb517384cb3dd /net/ieee802154/6lowpan/rx.c
parent4481c0767e52eea674794de4b9123c9bc3d24f24 (diff)
downloadtalos-op-linux-0751272880f3a0c74c786ecfaba2b3d98748482f.tar.gz
talos-op-linux-0751272880f3a0c74c786ecfaba2b3d98748482f.zip
ieee802154: 6lowpan: fix packet layer registration
This patch fixes 802.15.4 packet layer registration when mutliple lowpan interfaces will be added. We need to register the packet layer at the first lowpan interface and deregister it at the last interface. This done by open_count variable which is protected by rtnl. Additional do a quiet fix by adding dev_put(real_dev) when netdev registration fails, which fix the refcount for the wpan dev. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/6lowpan/rx.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud