提交 117aa41e 编写于 作者: A Al Viro

[regression] fix braino in fs/dlm/user.c

it's "bugger off if we got ERR_PTR", not the other way round...
Signed-off-by: NBob Peterson <rpeterso@redhat.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 759c0114
......@@ -516,7 +516,7 @@ static ssize_t device_write(struct file *file, const char __user *buf,
return -EINVAL;
kbuf = memdup_user_nul(buf, count);
if (!IS_ERR(kbuf))
if (IS_ERR(kbuf))
return PTR_ERR(kbuf);
if (check_version(kbuf)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册