aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/caif/caif_spi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/caif/caif_spi.c b/drivers/net/caif/caif_spi.c
index 6c948037fc78..f5058ff2b210 100644
--- a/drivers/net/caif/caif_spi.c
+++ b/drivers/net/caif/caif_spi.c
@@ -165,6 +165,9 @@ static ssize_t dbgfs_state(struct file *file, char __user *user_buf,
165 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), 165 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len),
166 "Next RX len: %d\n", cfspi->rx_npck_len); 166 "Next RX len: %d\n", cfspi->rx_npck_len);
167 167
168 if (len > DEBUGFS_BUF_SIZE)
169 len = DEBUGFS_BUF_SIZE;
170
168 size = simple_read_from_buffer(user_buf, count, ppos, buf, len); 171 size = simple_read_from_buffer(user_buf, count, ppos, buf, len);
169 kfree(buf); 172 kfree(buf);
170 173