mlx5: Fix cleanup flow when DMA mapping fails
authorEli Cohen <eli@dev.mellanox.co.il>
Wed, 23 Oct 2013 06:53:18 +0000 (09:53 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:00 +0000 (14:43 -0800)
commit952f5f6e807ba82e1b82fcfcf7f73db022342aa7
tree75651d8c239a0957981a7e395c0d155d4cc89d45
parentcfd8f1d49b61b20aab77d5af5ec907dc99bb0064
mlx5: Fix cleanup flow when DMA mapping fails

If DMA mapping fails, the driver cleared the object that holds the
previously DMA mapped pages. Fix this by allocating a new object for
the command that reports back to firmware that pages can't be
supplied.

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