[prev in list] [next in list] [prev in thread] [next in thread]
List: autofs
Subject: [PATCH 02/12] autofs: Don't fail to free_dev_ioctl(param)
From: Tomohiro Kusumi <kusumi.tomohiro () gmail ! com>
Date: 2016-07-10 8:08:37
Message-ID: 1468138073-4870-2-git-send-email-kusumi.tomohiro () gmail ! com
[Download RAW message or body]
Returning -ENOTTY here fails to free dynamically allocated param.
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@xxxxxxxxx>
---
fs/autofs4/dev-ioctl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c
index c7fcc74..d47b35a 100644
--- a/fs/autofs4/dev-ioctl.c
+++ b/fs/autofs4/dev-ioctl.c
@@ -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;
--
2.5.5
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic