From: Colin Ian King Date: Tue, 26 Mar 2013 17:35:23 +0000 (+0000) Subject: iwlegacy: 4965-rs: avoid null pointer dereference error X-Git-Tag: v3.9-rc6~38^2~18^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ace5af39866da7d45f43774150dace19a73716d6;p=pandora-kernel.git iwlegacy: 4965-rs: avoid null pointer dereference error 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed