commit | 117aa41e8020fe493bbb677ebe828c3a4b380185 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Jan 21 17:41:23 2016 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Thu Jan 21 17:45:15 2016 -0500 |
tree | d2a1f9983bda32dd12369fc09fcff0e936ddbfac | |
parent | 759c01142a5d0f364a462346168a56de28a80f52 [diff] |
[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>
diff --git a/fs/dlm/user.c b/fs/dlm/user.c index 1925d6d..58c2f4a 100644 --- a/fs/dlm/user.c +++ b/fs/dlm/user.c
@@ -516,7 +516,7 @@ return -EINVAL; kbuf = memdup_user_nul(buf, count); - if (!IS_ERR(kbuf)) + if (IS_ERR(kbuf)) return PTR_ERR(kbuf); if (check_version(kbuf)) {