net/mlx4: fix small memory leak on error
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 3 Jul 2013 09:37:46 +0000 (12:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jul 2013 23:52:10 +0000 (16:52 -0700)
commit9caf83c32be1dabf000ab7dc8430fba4f7d89e65
tree9f3165fae87e5960fb310b4a2def8f67b2d3021b
parent4bc41b84e9b4d904f68cba2dbe0c60a5428c27c4
net/mlx4: fix small memory leak on error

"work" needs to be freed before returning on this error path.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c