diff options
| author | David Howells <dhowells@redhat.com> | 2026-09-02 13:10:20 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-02 14:13:11 +0200 |
| commit | e3cfd3eb7d5be7787cc69530b423f788f14d084f (patch) | |
| tree | a5480ce6ec3eb14dca95c9887e86909ae6736715 /tools/lib/python/kdoc/python_version.py | |
| parent | 950ae84b5cc944fbe27d81806d0b76af765f779c (diff) | |
afs: Fix double-unmap of directory block
Fix afs_edit_dir_remove() to use a cleanup function to unmap the block
pointed to by afs_dir_iter::block if it's left pointing to something rather
than manually kunmapping the blocks. Manually kunmapping without clearing
iter.blocks can result in a double-kunmap if afs_dir_find_block() is called
twice in a row (which would be the case if the block being modified is not
first in the hash chain).
Fixes: a5b5beebcf96 ("afs: Use the contained hashtable to search a directory")
Closes: https://sashiko.dev/#/patchset/20260716103030.3065561-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/20260902121024.3328255-3-dhowells@redhat.com
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
cc: linux-fsdevel@vger.kernel.org
cc: stable@vger.kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
