OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759c011
)
[regression] fix braino in fs/dlm/user.c
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 21 Jan 2016 22:41:23 +0000
(17:41 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 21 Jan 2016 22:45:15 +0000
(17:45 -0500)
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>
fs/dlm/user.c
patch
|
blob
|
history
diff --git
a/fs/dlm/user.c
b/fs/dlm/user.c
index
1925d6d
..
58c2f4a
100644
(file)
--- 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,
return -EINVAL;
kbuf = memdup_user_nul(buf, count);
- if (
!
IS_ERR(kbuf))
+ if (IS_ERR(kbuf))
return PTR_ERR(kbuf);
if (check_version(kbuf)) {