projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfb6f99
)
mac802154: fix destructon ordering for ieee802154 devices
author
Konstantin Khlebnikov
<
[email protected]
>
Fri, 14 Dec 2012 01:03:03 +0000
(
01:03
+0000)
committer
David S. Miller
<
[email protected]
>
Fri, 14 Dec 2012 18:14:07 +0000
(13:14 -0500)
mutex_destroy() must be called before wpan_phy_free(), because it puts the last
reference and frees memory. Catched as overwritten poison in kmalloc-2048.
Signed-off-by: Konstantin Khlebnikov <
[email protected]
>
Cc: Alexander Smirnov <
[email protected]
>
Cc: Dmitry Eremin-Solenikov <
[email protected]
>
Cc: David S. Miller <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Signed-off-by: David S. Miller <
[email protected]
>
net/mac802154/ieee802154_dev.c
patch
|
blob
|
history
diff --git
a/net/mac802154/ieee802154_dev.c
b/net/mac802154/ieee802154_dev.c
index e748aed290aaedee649bf89274b1fe15e8946c35..b7c7f815deae81068b073636dc2a0978c1ab3c53 100644
(file)
--- a/
net/mac802154/ieee802154_dev.c
+++ b/
net/mac802154/ieee802154_dev.c
@@
-224,9
+224,9
@@
void ieee802154_free_device(struct ieee802154_dev *hw)
BUG_ON(!list_empty(&priv->slaves));
- wpan_phy_free(priv->phy);
-
mutex_destroy(&priv->slaves_mtx);
+
+ wpan_phy_free(priv->phy);
}
EXPORT_SYMBOL(ieee802154_free_device);