Skip to content

Commit

Permalink
[regression] fix braino in fs/dlm/user.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Jan 21, 2016
1 parent 759c011 commit 117aa41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/dlm/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 117aa41

Please sign in to comment.