IB/mlx5: Fix list_del of empty list
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 31 Oct 2013 13:26:33 +0000 (15:26 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 15 Nov 2013 22:36:35 +0000 (14:36 -0800)
commit2b136d025348774633a2f6fc2a87f0cf409a3ab9
tree9d66d199f81bb4d9b37a0802e97b0cacaca9b884
parent7e2e19210a8bbbcacd31e8ce4a0ea64e3ac37dea
IB/mlx5: Fix list_del of empty list

For archs with pages size of 4K, when the chunk is freed, fwp is not in the
list so avoid attempting to delete it.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c