From: Stanislaw Gruszka Date: Fri, 3 Aug 2012 10:49:14 +0000 (+0200) Subject: rt61pci: fix NULL pointer dereference in config_lna_gain X-Git-Tag: v3.2.28~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1769652fdd92c112ecbc9b6dc546f87517af46c;p=pandora-kernel.git rt61pci: fix NULL pointer dereference in config_lna_gain commit deee0214def5d8a32b8112f11d9c2b1696e9c0cb upstream. We can not pass NULL libconf->conf->channel to rt61pci_config() as it is dereferenced unconditionally in rt61pci_config_lna_gain() subroutine. Resolves: https://bugzilla.kernel.org/show_bug.cgi?id=44361 Reported-and-tested-by: Signed-off-by: Stanislaw Gruszka Signed-off-by: John W. Linville Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed