]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: hwsim: using right kind of iteration
authorAlexander Aring <aring@mojatatu.com>
Sun, 12 Aug 2018 20:24:56 +0000 (16:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2018 16:58:57 +0000 (09:58 -0700)
commitfe3e278e718417fb8d74f49818387a065fd05829
tree0f96a49cda7620855100c5ac60b9a0d383f248f1
parent06475785837b4f25553698e0b9e035200683d41c
ieee802154: hwsim: using right kind of iteration

This patch fixes the error path to unsubscribe all other phy's from
current phy. The actually code using a wrong kind of list iteration may
copied from the case to unsubscribe the current phy from all other
phy's.

Cc: Stefan Schmidt <stefan@datenfreihafen.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 85e15273df83 ("ieee802154: hwsim: add replacement for fakelb")
Signed-off-by: Alexander Aring <aring@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/mac802154_hwsim.c