Skip to content

Commit 117aa41

Browse files
author
Al Viro
committed
[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>
1 parent 759c011 commit 117aa41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/dlm/user.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ static ssize_t device_write(struct file *file, const char __user *buf,
516516
return -EINVAL;
517517

518518
kbuf = memdup_user_nul(buf, count);
519-
if (!IS_ERR(kbuf))
519+
if (IS_ERR(kbuf))
520520
return PTR_ERR(kbuf);
521521

522522
if (check_version(kbuf)) {

0 commit comments

Comments
 (0)