X-Git-Url: http://rtime.felk.cvut.cz/gitweb/linux-lin.git/blobdiff_plain/56c3de5c24db22d100bd527e10bf2f5e5d022cbf..5c02d1856f32f8206f467b11cb61faf557c1882f:/sllin/sllin.c 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 */