diff options
| author | Zilin Guan <zilin@seu.edu.cn> | 2026-06-22 10:08:41 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-07-01 15:26:19 +0200 |
| commit | cb39654926f8e7a08ecc1dcb3941628855275940 (patch) | |
| tree | a0815959e20a7a4a016c601189a7b86af23cec7e /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | 35b177ef541ae8eefbfbf679c3476bc3fb1eb83c (diff) | |
afs: use kvfree() to free memory allocated by kvcalloc()
op->more_files is allocated with kvcalloc() but released via
afs_put_operation(), which uses kfree() internally. This mismach prevents
the resource from being released properly and may lead to undefined
behavior.
Fix this by using kvfree() to free op->more_files to match its allocation
method.
Fixes: e49c7b2f6de7 ("afs: Build an abstraction around an "operation" concept")
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/20260622090856.2746629-8-dhowells@redhat.com
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
