On Mon, 2016-06-06 at 16:56 +0200, Eduardo Abinader wrote: > Setting NULL just after freeing regdomain. > > Signed-off-by: Eduardo Abinader <eduardo.abinader@xxxxxxxxxxxx> > --- > net/wireless/nl80211.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c > index d120449..39d107d 100644 > --- a/net/wireless/nl80211.c > +++ b/net/wireless/nl80211.c > @@ -5839,10 +5839,11 @@ static int nl80211_set_reg(struct sk_buff > *skb, struct genl_info *info) > > r = set_regdom(rd, REGD_SOURCE_CRDA); > /* set_regdom took ownership */ > - rd = NULL; > > bad_reg: > kfree(rd); > + rd = NULL; To this I can only say: what? johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html