diff options
| author | Liviu Dudau <[email protected]> | 2019-03-05 23:42:54 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-03-06 05:07:14 +0000 |
| commit | 6ade20327dbb808882888ed8ccded71e93067cf9 (patch) | |
| tree | 91f168af07d0bd54d5df81835ace554a64b1c0c1 /init/init_task.c | |
| parent | PM/Hibernate: exclude all PageOffline() pages (diff) | |
| download | kernel-6ade20327dbb808882888ed8ccded71e93067cf9.tar.gz kernel-6ade20327dbb808882888ed8ccded71e93067cf9.zip | |
mm/vmalloc.c: don't dereference possible NULL pointer in __vunmap()
find_vmap_area() can return a NULL pointer and we're going to
dereference it without checking it first. Use the existing
find_vm_area() function which does exactly what we want and checks for
the NULL pointer.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: f3c01d2f3ade ("mm: vmalloc: avoid racy handling of debugobjects in vunmap")
Signed-off-by: Liviu Dudau <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Chintan Pandya <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions
