From: Gabor Juhos Date: Mon, 10 Dec 2012 23:06:41 +0000 (+0100) Subject: ath9k: check pdata variable before dereferencing it X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~17^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36b07d15a656b657beaf9e6357a341768192fad2;p=pandora-kernel.git 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 Signed-off-by: Gabor Juhos Signed-off-by: John W. Linville --- Reading git-diff-tree failed