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)
commit1c89a8e3d9a235454169e189ea6c463bfa8749ab
tree0f96a49cda7620855100c5ac60b9a0d383f248f1
parentac272a3e9c0838a2cbc76327e29788dc2af49abe
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: f25da51fdc38 ("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