android_kernel_asus_sm8350/net/mac802154
Lennert Buytenhek e34fd879f5 mac802154: Avoid rtnl deadlock in mac802154_wpan_ioctl().
->ndo_do_ioctl() can be entered with the rtnl lock already held,
for example when sending a wext ioctl to a device (in which case
the rtnl lock is taken by wext_ioctl_dispatch()), but
mac802154_wpan_ioctl() currently unconditionally takes the rtnl
lock on entry, which can cause deadlocks.

To fix this, bail out of mac802154_wpan_ioctl() before taking the
rtnl lock if the ioctl cmd is not one of the cmds we implement.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Acked-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2015-05-26 18:03:01 +02:00
..
cfg.c mac802154: remove check if operation is supported 2015-05-19 11:44:42 +02:00
cfg.h mac802154: introduce mac802154_config_ops 2014-11-02 04:51:06 +01:00
driver-ops.h ieee802154: change cca ed level to mbm 2015-05-19 11:44:42 +02:00
ieee802154_i.h mac802154: remove mib lock 2015-05-23 17:57:08 +02:00
iface.c mac802154: Avoid rtnl deadlock in mac802154_wpan_ioctl(). 2015-05-26 18:03:01 +02:00
Kconfig mac802154: select CRYPTO when needed 2015-05-19 19:35:48 +02:00
llsec.c mac802154: llsec: fix return value check in llsec_key_alloc() 2015-04-30 18:46:28 +02:00
llsec.h mac802154: add llsec decryption method 2014-05-16 17:23:41 -04:00
mac_cmd.c mac802154: remove mib lock 2015-05-23 17:57:08 +02:00
main.c ieee802154: add iftypes capability 2015-05-19 11:44:42 +02:00
Makefile mac802154: introduce mac802154_config_ops 2014-11-02 04:51:06 +01:00
mib.c mac802154: remove mib lock 2015-05-23 17:57:08 +02:00
rx.c mac802154: remove mib lock 2015-05-23 17:57:08 +02:00
tx.c mac802154: add interframe spacing time handling 2014-11-13 04:51:58 +01:00
util.c mac802154: tx: allow xmit complete from hard irq 2015-05-19 11:44:45 +02:00