diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-21 17:41:23 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-21 17:45:15 -0500 |
commit | 117aa41e8020fe493bbb677ebe828c3a4b380185 (patch) | |
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>
-rw-r--r-- | fs/dlm/user.c | 2 |
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, | |||
516 | return -EINVAL; | 516 | return -EINVAL; |
517 | 517 | ||
518 | kbuf = memdup_user_nul(buf, count); | 518 | kbuf = memdup_user_nul(buf, count); |
519 | if (!IS_ERR(kbuf)) | 519 | if (IS_ERR(kbuf)) |
520 | return PTR_ERR(kbuf); | 520 | return PTR_ERR(kbuf); |
521 | 521 | ||
522 | if (check_version(kbuf)) { | 522 | if (check_version(kbuf)) { |