mlx5_core: Fix use after free in mlx5_cmd_comp_handler()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 22 Jul 2013 08:02:01 +0000 (11:02 +0300)
committerRoland Dreier <roland@purestorage.com>
Wed, 31 Jul 2013 21:12:09 +0000 (14:12 -0700)
commit11940c8728b8e4bd67d0afacefbb9391ff8f4201
tree3f9cfb58189f35e51d1d7ac7eccbace551e1719c
parent92b0ca7cb149d20bd97a2ad88d860745045a77dc
mlx5_core: Fix use after free in mlx5_cmd_comp_handler()

We can't dereference "ent" after passing it to free_cmd().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c