diff options
| author | Michal Nazarewicz <[email protected]> | 2013-11-29 17:06:46 +0000 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2013-12-02 18:11:51 +0000 |
| commit | beae416b1f40ef3b6f7918035cefcf1d5f9aeb49 (patch) | |
| tree | 375bc551eb885bfcf90309b9eef6b961f1595c03 /net/unix/af_unix.c | |
| parent | ath9k: Fix XLNA bias strength (diff) | |
| download | kernel-beae416b1f40ef3b6f7918035cefcf1d5f9aeb49.tar.gz kernel-beae416b1f40ef3b6f7918035cefcf1d5f9aeb49.zip | |
net: wireless: ath9k: avoid possible NULL pointer dereference
Code in ath9k_hw_set_clockrate function indicates that ah->curchan
(and thus chan local variable) may be NULL. If that is indeed the
case, IS_CHAN_HT40(chan) check has to be performed only in branch
where chan is not NULL. Moving the code under already existing
if condition fixes this issue.
Signed-off-by: Michal Nazarewicz <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
