]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6207c0987d35e4133d3f666072a7e9b9e48e01f0
tree75651d8c239a0957981a7e395c0d155d4cc89d45
parent7933eb665da20547957324e7df8449409dc7eb9b
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