summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorJeffin Philip <jeffinphilip14@gmail.com>2026-09-03 13:40:48 +0530
committerChristian Brauner <brauner@kernel.org>2026-09-04 09:48:00 +0200
commit5ab54837fce04a1c9923d0bfd3d5de51fdc768b3 (patch)
treefd54cce0b6d2c155b3ca7a2832aa8c68706f1761 /tools/lib/python/kdoc/python_version.py
parent115bf3e51538e74159e9fa46199468b69fd5df70 (diff)
fs: autofs: fix memory leak in autofs_fill_super()
In autofs_fill_super(), we create a new inode using autofs_new_ino(), however, if we fail to create root_inode, (that is, root_inode failure path), we return -ENOMEM without freeing the new inode(ino) that we created causing a memory leak. Fix this by adding autofs_free_ino() to free the inode we created in root_inode failure path before returning ENOMEM. Reported-by: syzbot+df1db6e034b3953e19f5@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=df1db6e034b3953e19f5 Fixes: 66917f85db60 ("autofs: add: new_inode check in autofs_fill_super()") Cc: stable@vger.kernel.org Signed-off-by: Jeffin Philip <jeffinphilip14@gmail.com> Link: https://patch.msgid.link/20260903081048.132524-1-jeffinphilip14@gmail.com Signed-off-by: Ian Kent <raven@themaw.net> 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