From: Larry Finger Date: Wed, 6 Feb 2013 18:54:17 +0000 (-0600) Subject: rtlwifi: rtl8192cu: Fix NULL dereference BUG when using new_id X-Git-Tag: v3.2.40~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=581e58916c90eb2ba65f6c0a5a1c33ba2238a7bf;p=pandora-kernel.git rtlwifi: rtl8192cu: Fix NULL dereference BUG when using new_id commit 957f4aca5fa0db69635271bc4621cc0b65b2d590 upstream. When the new_id entry in /sysfs is used for a foreign USB device, rtlwifi BUGS with a NULL pointer dereference because the per-driver configuration data is not available. The probe function has been restructured as suggested by Ben Hutchings . Signed-off-by: Larry Finger Signed-off-by: John W. Linville [bwh: Backported to 3.2: adjust context, indentation] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed