Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1186189

[PATCH -mm] parse_integer: fixup mm/memcontrol.c conversion

From Alexey Dobriyan <adobriyan@gmail.com>
Newsgroups linux.kernel
Subject [PATCH -mm] parse_integer: fixup mm/memcontrol.c conversion
Date 2015-07-16 20:50 +0200
Message-ID <pMWoi-6DY-9@gated-at.bofh.it> (permalink)
References <pMWoi-6DY-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Fix copypasterro: efd => cfd.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 mm/memcontrol.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4197,21 +4197,21 @@ static ssize_t memcg_write_event_control(struct kernfs_open_file *of,
 	int ret;
 
 	buf = strstrip(buf);
 
 	ret = parse_integer(buf, 10, &efd);
 	if (ret < 0)
 		return ret;
 	buf += ret;
 	if (*buf++ != ' ')
 		return -EINVAL;
-	ret = parse_integer(buf, 10, &efd);
+	ret = parse_integer(buf, 10, &cfd);
 	if (ret < 0)
 		return ret;
 	buf += ret;
 	if (*buf != ' ' && *buf != '\0')
 		return -EINVAL;
 	buf++;
 
 	event = kzalloc(sizeof(*event), GFP_KERNEL);
 	if (!event)
 		return -ENOMEM;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH -mm] parse_integer: fixup mm/memcontrol.c conversion Alexey Dobriyan <adobriyan@gmail.com> - 2015-07-16 20:50 +0200

csiph-web