From: Gabor Juhos Date: Thu, 16 Feb 2012 19:44:59 +0000 (+0100) Subject: rt2x00: fix a possible NULL pointer dereference X-Git-Tag: v3.3-rc7~39^2~15^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7be081539e540517d5e1fcbf96b8080074afbf08;p=pandora-kernel.git rt2x00: fix a possible NULL pointer dereference The 'rt2x00lib_probe_dev' function tries to allocate the workqueue. If the allocation fails, 'rt2x00_lib_remove_dev' is called on the error path. Because 'rt2x00dev->workqueue' is NULL in this case, the 'destroy_workqueue' call will cause a NULL pointer dereference. Signed-off-by: Gabor Juhos Acked-by: Gertjan van Wingerde Acked-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed