projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87d4abd
)
net/mlx4_core: Free ICM table in case of error
author
Dotan Barak
<
[email protected]
>
Wed, 11 Jul 2012 15:39:32 +0000
(15:39 +0000)
committer
Roland Dreier
<
[email protected]
>
Wed, 11 Jul 2012 16:22:58 +0000
(09:22 -0700)
In mlx4_init_icm_table(), free the allocated table if we failed to
allocate memory to its entries.
Signed-off-by: Dotan Barak <
[email protected]
>
Reviewed-by: Yevgeny Petrilin <
[email protected]
>
Signed-off-by: Or Gerlitz <
[email protected]
>
Signed-off-by: Roland Dreier <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/icm.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/icm.c
b/drivers/net/ethernet/mellanox/mlx4/icm.c
index a9ade1c3cad50dd1b0c7da2a2b497e857ffc1b3f..88b7b3e75ab197706b3a1f0c7fa953e1f5f9da0b 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/icm.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/icm.c
@@
-413,6
+413,8
@@
err:
mlx4_free_icm(dev, table->icm[i], use_coherent);
}
+ kfree(table->icm);
+
return -ENOMEM;
}