kpatch/test/integration/rhel-8.2/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 2020-05-12 11:14:32.780638873 -0400
+++ src/drivers/tty/tty_buffer.c 2020-05-12 11:15:29.618175596 -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;