From: Breno Leitao Date: Thu, 1 Jul 2010 03:00:18 +0000 (+0000) Subject: qlge: fix a eeh handler to not add a pending timer X-Git-Tag: submit/tizen/20141203.153721~10981^2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ae80abdba0644e12ac17da567a2db1efc1bf8a8;p=platform%2Fkernel%2Flinux-arm64.git qlge: fix a eeh handler to not add a pending timer On some ocasions the function qlge_io_resume() tries to add a pending timer, which causes the system to hit the BUG() on add_timer() function. This patch removes the timer during the EEH recovery. Signed-off-by: Breno Leitao Signed-off-by: Ron Mercer Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 509dadcd1c5..d10bcefc0e4 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c @@ -4712,6 +4712,8 @@ static void ql_eeh_close(struct net_device *ndev) netif_stop_queue(ndev); } + /* Disabling the timer */ + del_timer_sync(&qdev->timer); if (test_bit(QL_ADAPTER_UP, &qdev->flags)) cancel_delayed_work_sync(&qdev->asic_reset_work); cancel_delayed_work_sync(&qdev->mpi_reset_work);