From: Al Viro Date: Thu, 21 Jan 2016 22:41:23 +0000 (-0500) Subject: [regression] fix braino in fs/dlm/user.c X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=117aa41e8020fe493bbb677ebe828c3a4b380185;p=linux.git [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 Signed-off-by: Al Viro --- diff --git a/fs/dlm/user.c b/fs/dlm/user.c index 1925d6d222b87..58c2f4a21b7f4 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)) {