Commit 41a4497a authored by aaaaa's avatar aaaaa Committed by Linus Torvalds

autofs: don't fail to free_dev_ioctl(param)

Returning -ENOTTY here fails to free dynamically allocated param.

Link: aaaaa's avatarTomohiro Kusumi <>
Signed-off-by: 's avatarIan Kent <>
Signed-off-by: 's avatarAndrew Morton <>
Signed-off-by: 's avatarLinus Torvalds <>
parent eea618e6
......@@ -662,7 +662,8 @@ static int _autofs_dev_ioctl(unsigned int command,
fn = lookup_dev_ioctl(cmd);
if (!fn) {
pr_warn("unknown command 0x%08x\n", command);
return -ENOTTY;
err = -ENOTTY;
goto out;
fp = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment