From: Rostislav Lisovy Date: Fri, 16 Dec 2011 12:39:05 +0000 (+0100) Subject: sllin: Bugfix. Stop rx_timer when LIN response is received as CAN frame. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/linux-lin.git/commitdiff_plain/c4387574646ba91748e78418b0c367dce465ca30 sllin: Bugfix. Stop rx_timer when LIN response is received as CAN frame. --- 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) {