]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8180: avoid NULL dereference in max2820_rf_set_channel
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 27 May 2008 21:01:55 +0000 (17:01 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 May 2008 20:43:38 +0000 (16:43 -0400)
commit3e72952945f2dfb21082e92f65e2365368bce85b
tree8586bdd871c382f673005a669a1c48f23c595782
parentdfdaf195277267724da54e20cb49224456d1b152
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 51ee50647e972c33b1110f6aaa7d7e005adfc06f) mistakenly
dropped this check.  This patch minimally restores the expected
behavior.

Reported-by: Colin Lai <colin_sh@163.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl8180_max2820.c