]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: Fixing use after free
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Wed, 30 Mar 2011 23:28:52 +0000 (23:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Mar 2011 09:52:17 +0000 (02:52 -0700)
commit04bb96687df53aa714af67160a13a991c83c449d
treee77703aed0ac7d44fa82736c935039638ea6c280
parent7749a1ccc13889d5758b57cccb400ba003490d25
mlx4: Fixing use after free

In case of allocation failure, tried to use the promiscuous QP
entry that was previously freed.
Now freeing this entry only in case we will not put it back to the list
of promiscuous entries.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/mcg.c