net/mlx4_core: Unmap UAR also in the case of error flow
authorDotan Barak <dotanb@dev.mellanox.co.il>
Thu, 25 Oct 2012 01:12:49 +0000 (01:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2012 07:34:15 +0000 (03:34 -0400)
commitbfc0d8c3de31a51e671e2c1564fd194fa6b00179
tree97a0c526f58b73d2ff26d5fc83c9cfdbb02dea1a
parent2b39a06198a0fbaf44a69f435c5d2b4280a0c10e
net/mlx4_core: Unmap UAR also in the case of error flow

If a failure takes place during the EQ creation, we need to unmap the
UAR memory block too.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Uri Habusha <urih@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/eq.c