diff options
author | 2012-12-11 00:06:41 +0100 | |
---|---|---|
committer | 2012-12-11 16:00:39 -0500 | |
commit | 36b07d15a656b657beaf9e6357a341768192fad2 (patch) | |
tree | 86ced1f36f85b684186c9f1ef78eb4cf11eef0cd /tools/perf/scripts/python/syscall-counts.py | |
parent | ath5k: RX timestamp is reported at end of frame (diff) | |
download | linux-dev-36b07d15a656b657beaf9e6357a341768192fad2.tar.xz linux-dev-36b07d15a656b657beaf9e6357a341768192fad2.zip |
ath9k: check pdata variable before dereferencing it
Due to my recent commit (ath9k: allow to load EEPROM
content via firmware API) smatch complains about that
the 'pdata' variable in 'ath9k_hw_init' can be NULL
and it is dereferenced before checking that. That is
absolutely correct.
Check the 'pdata' variable before using it to avoid
a NULL pointer dereference.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions