patch-5.10.100-rt62.patch
[platform/kernel/linux-rpi.git] / kernel / printk / printk_ringbuffer.c
index 74e25a1..617dd63 100644 (file)
@@ -1720,7 +1720,7 @@ static bool copy_data(struct prb_data_ring *data_ring,
 
        /* Caller interested in the line count? */
        if (line_count)
-               *line_count = count_lines(data, data_size);
+               *line_count = count_lines(data, len);
 
        /* Caller interested in the data content? */
        if (!buf || !buf_size)