]> www.infradead.org Git - users/dwmw2/linux.git/commit
autofs: fix thinko in validate_dev_ioctl()
authorIan Kent <raven@themaw.net>
Sun, 27 Oct 2024 22:47:17 +0000 (06:47 +0800)
committerChristian Brauner <brauner@kernel.org>
Mon, 28 Oct 2024 12:16:56 +0000 (13:16 +0100)
commitf19910006effbd08398de79ca0233ea7e480616a
treefc6739c43582c58371ed57111a40f3fd832f7e0b
parente65a0dc1cabe71b91ef5603e5814359451b74ca7
autofs: fix thinko in validate_dev_ioctl()

I was so sure the per-dentry expire timeout patch worked ok but my
testing was flawed.

In validate_dev_ioctl() the check for ioctl AUTOFS_DEV_IOCTL_TIMEOUT_CMD
should use the ioctl number not the passed in ioctl command.

Fixes: 433f9d76a010 ("autofs: add per dentry expire timeout")
Cc: <stable@vger.kernel.org> # mainline only
Signed-off-by: Ian Kent <raven@themaw.net>
Link: https://lore.kernel.org/r/20241027224732.5507-1-raven@themaw.net
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/autofs/dev-ioctl.c