From c4387574646ba91748e78418b0c367dce465ca30 Mon Sep 17 00:00:00 2001 From: Rostislav Lisovy Date: Fri, 16 Dec 2011 13:39:05 +0100 Subject: [PATCH] sllin: Bugfix. Stop rx_timer when LIN response is received as CAN frame. --- sllin/sllin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sllin/sllin.c b/sllin/sllin.c index 6a4e8bf..7388bb6 100644 --- a/sllin/sllin.c +++ b/sllin/sllin.c @@ -879,6 +879,8 @@ int sllin_kwthread(void *ptr) lin_buff = (sl->lin_master) ? sl->tx_buff : sl->rx_buff; if (cf->can_id == (lin_buff[SLLIN_BUFF_ID] & LIN_ID_MASK)) { + hrtimer_cancel(&sl->rx_timer); + pr_debug("sllin: received LIN response in a CAN frame.\n"); if (sllin_setup_msg(sl, SLLIN_STPMSG_RESPONLY, cf->can_id & LIN_ID_MASK, cf->data, cf->can_dlc) != -1) { -- 2.39.2