mac802154: fix hold rtnl while ioctl
authorAlexander Aring <alex.aring@gmail.com>
Fri, 22 May 2015 15:43:51 +0000 (17:43 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 23 May 2015 15:57:07 +0000 (17:57 +0200)
commit4a669f7d72535017dd03cbcdf5af6e85edfdf90c
tree4ce362a71937e70c0824c96ca85b1e6200586033
parent2d8cbd31dd5d4fe7825e1ab88f39c283849db946
mac802154: fix hold rtnl while ioctl

This patch fixes an issue to set address configuration with ioctl.
Accessing the mib requires rtnl lock and the ndo_do_ioctl doesn't hold
the rtnl lock while this callback is called. This patch do that
manually.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reported-by: Matteo Petracca <matteo.petracca@sssup.it>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/iface.c