]> 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)
commit47b98d3d5e50de0ff3ed362b48b8b0f849f50cf7
tree0f96a49cda7620855100c5ac60b9a0d383f248f1
parenta3bc55d986918735c77dd04063faa966e48f9955
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: 460b91803f21 ("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