]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-verity: fix unreliable memory allocation
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 17 Nov 2025 20:42:02 +0000 (21:42 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 21 Nov 2025 11:51:41 +0000 (12:51 +0100)
commitfe680d8c747f4e676ac835c8c7fb0f287cd98758
tree5f1dd6654819d7c5ec1e21e1fb397fd550ddb6b5
parenta612d24e850b28c16384cf071636034935447e43
dm-verity: fix unreliable memory allocation

GFP_NOWAIT allocation may fail anytime. It needs to be changed to
GFP_NOIO. There's no need to handle an error because mempool_alloc with
GFP_NOIO can't fail.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
drivers/md/dm-verity-fec.c