On Tue, 2008-11-04 at 18:50 -0800, Luis R. Rodriguez wrote: > last_request was not being initialized. By initializing it > we don't fix a bug as we are not checking for it before prior > to a regulatory hint however we may do so at a later time. It's a static variable, it always starts out as NULL, this isn't necessary. > Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> > --- > net/wireless/reg.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/net/wireless/reg.c b/net/wireless/reg.c > index f062b8b..3754d0d 100644 > --- a/net/wireless/reg.c > +++ b/net/wireless/reg.c > @@ -899,6 +899,8 @@ int regulatory_init(void) > if (IS_ERR(reg_pdev)) > return PTR_ERR(reg_pdev); > > + last_request = NULL; > + > #ifdef CONFIG_WIRELESS_OLD_REGULATORY > cfg80211_regdomain = static_regdom(ieee80211_regdom); >
Attachment:
signature.asc
Description: This is a digitally signed message part