summaryrefslogtreecommitdiffstats
path: root/fs/dlm/user.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-01-21 23:41:23 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2016-01-21 23:45:15 +0100
commit117aa41e8020fe493bbb677ebe828c3a4b380185 (patch)
treed2a1f9983bda32dd12369fc09fcff0e936ddbfac /fs/dlm/user.c
parentpipe: limit the per-user amount of pages allocated in pipes (diff)
downloadlinux-117aa41e8020fe493bbb677ebe828c3a4b380185.tar.xz
linux-117aa41e8020fe493bbb677ebe828c3a4b380185.zip
[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: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dlm/user.c')
-rw-r--r--fs/dlm/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/user.c b/fs/dlm/user.c
index 1925d6d222b8..58c2f4a21b7f 100644
--- a/fs/dlm/user.c
+++ b/fs/dlm/user.c
@@ -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)) {