diff options
author | 2022-12-22 20:00:22 +0100 | |
---|---|---|
committer | 2023-01-18 17:12:48 -0800 | |
commit | 14687619e1122d71b2ed70e1afa6bc352e629e85 (patch) | |
tree | 3bf0412778379ed4f562ccd1c416eefe5b90af50 /mm/page_alloc.c | |
parent | mm: vmalloc: avoid calling __find_vmap_area() twice in __vunmap() (diff) | |
download | linux-rng-14687619e1122d71b2ed70e1afa6bc352e629e85.tar.xz linux-rng-14687619e1122d71b2ed70e1afa6bc352e629e85.zip |
mm: vmalloc: replace BUG_ON() by WARN_ON_ONCE()
Currently a vm_unmap_ram() functions triggers a BUG() if an area is not
found. Replace it by the WARN_ON_ONCE() error message and keep machine
alive instead of stopping it.
The worst case is a memory leaking.
Link: https://lkml.kernel.org/r/20221222190022.134380-3-urezki@gmail.com
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Reviewed-by: Lorenzo Stoakes <lstoakes@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Baoquan He <bhe@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sony.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions