From: Alexander Stein Date: Tue, 10 Dec 2013 17:16:14 +0000 (+0100) Subject: sllin: slave: don't forget to wait for the checksum X-Git-Url: http://rtime.felk.cvut.cz/gitweb/linux-lin.git/commitdiff_plain/5c02d1856f32f8206f467b11cb61faf557c1882f sllin: slave: don't forget to wait for the checksum Signed-off-by: Alexander Stein --- diff --git a/sllin/sllin.c b/sllin/sllin.c index cf3cd75..b97219e 100644 --- a/sllin/sllin.c +++ b/sllin/sllin.c @@ -550,7 +550,7 @@ static void sllin_slave_receive_buf(struct tty_struct *tty, /* Is the length of data set in frame cache? */ if (sce->frame_fl & LIN_CACHE_RESPONSE) { - sl->rx_expect += sce->dlc; + sl->rx_expect += sce->dlc + 1; /* + checksum */ sl->rx_len_unknown = false; } else { sl->rx_expect += SLLIN_DATA_MAX + 1; /* + checksum */