]> rtime.felk.cvut.cz Git - linux-lin.git/blobdiff - sllin/sllin.c
sllin: dlc in cache > 0 is the expected LIN frame length
[linux-lin.git] / sllin / sllin.c
index 487b72ad337d2c64a411c60710889f8c2dac63d8..c5e174949d831c7ed125c501ca50311c91257cea 100644 (file)
@@ -768,7 +768,7 @@ static void sllin_slave_receive_buf(struct tty_struct *tty,
 
                        sl->lin_state = SLSTATE_ID_RECEIVED;
                        /* Is the length of data set in frame cache? */
-                       if (sce->frame_fl & LIN_CACHE_RESPONSE) {
+                       if (sce->dlc > 0) {
                                sl->rx_expect += sce->dlc + 1; /* + checksum */
                                sl->rx_len_unknown = false;
                                set_bit(SLF_MSGEVENT, &sl->flags);