On Fri, Feb 25, 2011 at 11:31:26AM +0100, Arend van Spriel wrote: > +struct antsel_info *wlc_antsel_attach(struct wlc_info *wlc) > +{ > struct antsel_info *asi; > > asi = kzalloc(sizeof(struct antsel_info), GFP_ATOMIC); > if (!asi) { > - WL_ERROR("wl%d: wlc_antsel_attach: out of mem\n", pub->unit); > + WL_ERROR("wl%d: wlc_antsel_attach: out of mem\n", > + asi->pub->unit); ^^^^^ Null dereference. Should be wlc->pub->unit. regards, dan carpenter _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel