mlx4: Fix access to freed memory
authorVitaliy Gusev <vgusev@openvz.org>
Wed, 16 Sep 2009 07:00:21 +0000 (00:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Sep 2009 07:00:21 +0000 (00:00 -0700)
commit634354d753898f9d9d146bd47628a1ef27f7dc98
tree741559fce26417a710bd04e7a704e635d7864e53
parent657e9649e745b06675aa5063c84430986cdc3afa
mlx4: Fix access to freed memory

catas_reset() uses pointer to mlx4_priv, but mlx4_priv is not valid
after call mlx4_restart_one().

Signed-off-by: Vitaliy Gusev <vgusev@openvz.org>
Acked-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/catas.c