]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_en: Fix cleanup if workqueue create in mlx4_en_add() fails
authorRoland Dreier <rdreier@cisco.com>
Mon, 20 Apr 2009 18:32:08 +0000 (18:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2009 08:47:08 +0000 (01:47 -0700)
commit108cbc5e6ec32478ff5c6c68f1c8cd5bc1fafa8d
tree44a95e152ab8d540a54012a9484ebd02945d937a
parent6f16edd0f9707a358c8f36a920f1812ec63f2de7
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 <rolandd@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_main.c