Re: [PATCH 07/21] staging: brcm80211: change prototype for wlc_antsel_attach

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux