]> rtime.felk.cvut.cz Git - linux-lin.git/blobdiff - sllin/sllin.c
sllin: slave: don't forget to wait for the checksum
[linux-lin.git] / sllin / sllin.c
index cf3cd758c8ab42d69c7de8884c0ceb5e7a3a068c..b97219e565bad8ad2bc975a4267f9c36acecf0a8 100644 (file)
@@ -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 */