]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: free orphan info with kvfree
authorJan Kara <jack@suse.cz>
Tue, 7 Oct 2025 13:49:37 +0000 (15:49 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 Oct 2025 20:42:51 +0000 (16:42 -0400)
commit971843c511c3c2f6eda96c6b03442913bfee6148
treee364453329d8bd919c44ca7aca4d799c4b316262
parent1d3ad183943b38eec2acf72a0ae98e635dc8456b
ext4: free orphan info with kvfree

Orphan info is now getting allocated with kvmalloc_array(). Free it with
kvfree() instead of kfree() to avoid complaints from mm.

Reported-by: Chris Mason <clm@meta.com>
Fixes: 0a6ce20c1564 ("ext4: verify orphan file size is not too big")
Cc: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Message-ID: <20251007134936.7291-2-jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/orphan.c