Skip to content

Commit a9b8853

Browse files
committed
Merge branch 'at91-5.10-trunk/fixes' into linux-5.10-at91
2 parents 0d38128 + f0e13f4 commit a9b8853

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/seq_file.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ static void seq_set_overflow(struct seq_file *m)
3232

3333
static void *seq_buf_alloc(unsigned long size)
3434
{
35+
if (unlikely(size > MAX_RW_COUNT))
36+
return NULL;
37+
3538
return kvmalloc(size, GFP_KERNEL_ACCOUNT);
3639
}
3740

0 commit comments

Comments
 (0)