Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 117aa41e authored by Al Viro's avatar Al Viro
Browse files

[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: default avatarBob Peterson <rpeterso@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 759c0114
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {