lkml.org 
[lkml]   [2022]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 5/7] mm/vmalloc: skip the uninitilized vmalloc areas
On Sat, Dec 17, 2022 at 09:54:33AM +0800, Baoquan He wrote:
> @@ -3617,6 +3617,11 @@ long vread(char *buf, char *addr, unsigned long count)
> if (!vm && !flags)
> continue;
>
> + if (vm->flags & VM_UNINITIALIZED)
> + continue;

This comes immediately after asserting that vm _might be null_. This surely must become:-

if (vm && vm->flags & VM_UNINITIALIZED)
continue;

\
 
 \ /
  Last update: 2022-12-17 13:08    [W:0.099 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site