IB/mthca: Fix access to freed memory in catastrophic event handling
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Thu, 24 Sep 2009 18:55:41 +0000 (11:55 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 24 Sep 2009 18:55:41 +0000 (11:55 -0700)
commitd686159e50c57788001001e9537aa8b4bbc38001
treebba34fdf2c79b671df4523119153242e327f8f4e
parent86d710146fb9975f04c505ec78caa43d227c1018
IB/mthca: Fix access to freed memory in catastrophic event handling

catas_reset() uses a pointer to mthca_dev, but mthca_dev is not valid
after the call to __mthca_restart_one().

Based on a similar patch for mlx4 (634354d7, "mlx4: Fix access to
freed memory") by Vitaliy Gusev <vgusev@openvz.org>

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_catas.c