mac802154: protect address changes via ioctl
authorAlexander Aring <alex.aring@gmail.com>
Sun, 9 Nov 2014 07:36:59 +0000 (08:36 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 9 Nov 2014 18:50:29 +0000 (19:50 +0100)
commitf7cb96f105fb406e8db5e68e0cdd5067e2556d34
treee17cee80d85dc1aefdc7d8710a1210e3cb6a66f7
parent87023e1058c9ead2314c27761991816b48f949ef
mac802154: protect address changes via ioctl

This patch adds a netif_running check while trying to change the address
attributes via ioctl. While netif_running is true these attributes
should be only readable.

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