From: Roland Dreier Date: Mon, 20 Apr 2009 18:32:08 +0000 (+0000) Subject: mlx4_en: Fix cleanup if workqueue create in mlx4_en_add() fails X-Git-Tag: v2.6.30-rc4~68^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a44cc3778f63dca5795708da2a2a7696da7fd61;p=pandora-kernel.git mlx4_en: Fix cleanup if workqueue create in mlx4_en_add() fails If creating a workqueue fails, don't jump to the error path where that same workqueue is destroyed, since destroy_workqueue() can't handle a NULL pointer. This was spotted by the Coverity checker (CID 2617). Signed-off-by: Roland Dreier Signed-off-by: David S. Miller --- Reading git-diff-tree failed