mlx5: Fix error flow in add_keys
authorEli Cohen <eli@dev.mellanox.co.il>
Tue, 2 Dec 2014 10:26:19 +0000 (12:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 01:45:56 +0000 (20:45 -0500)
commitd14e71103bf61ed6c3de542f1752b6ce039b773d
tree3aa3b7ea8310c18928cd40c6a8782911b3c8b743
parent6a4f139aae77d601bd146a6b3c4e12e7e4e0226f
mlx5: Fix error flow in add_keys

If mlx5_core_create_mkey fails, decrease the pending counter to undo the
previous increment.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx5/mr.c