aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorGabor Juhos <[email protected]>2012-12-11 00:06:41 +0100
committerJohn W. Linville <[email protected]>2012-12-11 16:00:39 -0500
commit36b07d15a656b657beaf9e6357a341768192fad2 (patch)
tree86ced1f36f85b684186c9f1ef78eb4cf11eef0cd /fs/jbd/commit.c
parente576defd1fe1ade5afe590eadd556dce5473fc26 (diff)
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 <[email protected]> Signed-off-by: Gabor Juhos <[email protected]> Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions