From: Luis R. Rodriguez Date: Wed, 25 Mar 2009 01:21:08 +0000 (-0400) Subject: cfg80211: fix NULL pointer deference in reg_device_remove() X-Git-Tag: v2.6.30-rc4~68^2~40^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ad8acaf434d360ad99813d981a68e605d6c8179;p=pandora-kernel.git cfg80211: fix NULL pointer deference in reg_device_remove() We won't ever get here as regulatory_hint_core() can only fail on -ENOMEM and in that case we don't initialize cfg80211 but this is technically correct code. This is actually good for stable, where we don't check for -ENOMEM failure on __regulatory_hint()'s failure. Cc: stable@kernel.org Reported-by: Quentin Armitage Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- Reading git-diff-tree failed