Search Linux Wireless

Re: [PATCH] iwlegacy: 4965-rs: avoid null pointer dereference error

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

 



On Tue, Mar 26, 2013 at 05:35:23PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> 
> il4965_rs_initialize_lq checks to see if sta is null, however, before that
> check il4965_rs_use_green dereferences sta when intializing use_green.
> Avoid a potential null pointer dereference error by only calling
> il4965_rs_use_green after we are sure sta is not null.
> 
> Smatch analysis:
> 
> drivers/net/wireless/iwlegacy/4965-rs.c:2160 il4965_rs_initialize_lq() warn:
>   variable dereferenced before check 'sta' (see line 2155)
> 
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

ACK

--
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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux