Commit 6a64c522 authored by Aleksa Sarai's avatar Aleksa Sarai Committed by Christian Brauner
Browse files

autofs: fix missing fput for FSCONFIG_SET_FD



If you pass an fd using FSCONFIG_SET_FD, autofs_parse_fd() "steals" the
param->file and so the fs_context infrastructure will not do fput() for
us.

Fixes: e6ec453b ("autofs: convert autofs to use the new mount api")
Signed-off-by: default avatarAleksa Sarai <cyphar@cyphar.com>
Link: https://lore.kernel.org/r/20240731-fsconfig-fsparam_fd-fixes-v2-1-e7c472224417@cyphar.com


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 6c203968
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment