Message ID | 079165f7-cccb-8712-7090-a9b9ed929dba@broadcom.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
On Wed, 2017-06-14 at 19:28 +0200, Arend van Spriel wrote: > > All ieee80211_if_free() does is freeing the tstats and it deals with > null pointers. So for mac80211 this is ok but not generically. Not > sure how to tackle this in a semantic patch. I think the problem only applies to the register_netdev[ice]() error path directly, no? That is, you should be able to restrict it to that having just failed? johannes -- To unsubscribe from this list: send the line "unsubscribe backports" in
diff --git a/patches/0079-netdev-destructor.cocci b/patches/0079-netdev-destructor.cocci index d8a439d..71b5525 100644 --- a/patches/0079-netdev-destructor.cocci +++ b/patches/0079-netdev-destructor.cocci @@ -14,6 +14,15 @@ C(...) @r2 depends on r1@ struct net_device *NDEV; identifier r1.D; +@@ + +- free_netdev(NDEV); ++ D(NDEV); ++ free_netdev(NDEV); + +@r3 depends on r2@ +struct net_device *NDEV; +identifier r1.D; identifier r1.C; fresh identifier E2 = "__" ## D; @@