Skip to content
Commit 1a44cc37 authored by Roland Dreier's avatar Roland Dreier Committed by David S. Miller
Browse files

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: default avatarRoland Dreier <rolandd@cisco.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b1b243af
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment