kpatch/test/integration/rhel-8.4/smp-locks-section.patch

14 lines
487 B
Diff

diff -Nupr src.orig/drivers/tty/tty_buffer.c src/drivers/tty/tty_buffer.c
--- src.orig/drivers/tty/tty_buffer.c 2021-04-20 11:04:26.609100323 -0400
+++ src/drivers/tty/tty_buffer.c 2021-04-20 11:05:20.584235748 -0400
@@ -256,6 +256,9 @@ static int __tty_buffer_request_room(str
struct tty_buffer *b, *n;
int left, change;
+ if (!size)
+ printk("kpatch-test: testing .smp_locks section changes\n");
+
b = buf->tail;
if (b->flags & TTYB_NORMAL)
left = 2 * b->size - b->used;