]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: vrealloc: fix missing nommu implementation
authorDanilo Krummrich <dakr@kernel.org>
Thu, 25 Jul 2024 14:11:59 +0000 (16:11 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:21 +0000 (17:52 -0700)
commit012d84761204f5de84c6d92afea7468bbde1cd06
tree2d1b5f7c9de278ce72e1030bdd0b8a9b4fd31d2b
parent6c6e21beeed3f93d888e3fe1a3b2f74f193eed6b
mm: vrealloc: fix missing nommu implementation

Commit 5ec6d992f460 ("mm: vmalloc: implement vrealloc()") introduces
vrealloc(), but lacks the implementation of the nommu version of this
function.

Note that currently nommu isn't actually broken without this.  The only
user, kvrealloc(), never actually calls into vrealloc() with nommu, since
it's guarded by is_vmalloc_addr(), which for nommu always returns false.

However, since this becomes a real issue once vrealloc() is used by other
code, fix this.

Link: https://lkml.kernel.org/r/20240725141227.13954-1-dakr@kernel.org
Fixes: 5ec6d992f460 ("mm: vmalloc: implement vrealloc()")
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/nommu.c