From: John W. Linville Date: Tue, 27 May 2008 21:01:55 +0000 (-0400) Subject: rtl8180: avoid NULL dereference in max2820_rf_set_channel X-Git-Tag: v2.6.26-rc5~34^2~2^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f6c218f68e632e4596cae6e6d43658d26a5e0fe;p=pandora-kernel.git rtl8180: avoid NULL dereference in max2820_rf_set_channel The static function max2820_rf_set_channel is called with conf == NULL within its compilation unit. Originally this defaulted to b/g channel 1, but "cfg80211 API for channels/bitrates, mac80211 and driver conversion" (commit 8318d78a44d49ac1edf2bdec7299de3617c4232e) mistakenly dropped this check. This patch minimally restores the expected behavior. Reported-by: Colin Lai Signed-off-by: John W. Linville --- Reading git-diff-tree failed