diff options
author | Colin Ian King <colin.king@canonical.com> | 2013-03-26 17:35:23 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-27 15:07:05 (GMT) |
commit | ace5af39866da7d45f43774150dace19a73716d6 (patch) | |
tree | ecf729c4259b96a37fa3b98024076e76e9f88ab8 /fs/hppfs | |
parent | 7fc0357479eeff4ca808c4d8c09bc7631f576b8d (diff) | |
download | linux-fsl-qoriq-ace5af39866da7d45f43774150dace19a73716d6.tar.xz |
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 <colin.king@canonical.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'fs/hppfs')
0 files changed, 0 insertions, 0 deletions