projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
603ba7e
)
btrfs: filp_open() returns ERR_PTR() on failure, not NULL...
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 14 Dec 2014 07:59:17 +0000
(
02:59
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 17 Dec 2014 11:43:56 +0000
(06:43 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/volumes.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/volumes.c
b/fs/btrfs/volumes.c
index 0144790e296ed90ac0d17fef5ec382bf36ea7347..50c5a8762aedfc7bf5be640b96b3eb4622b58f88 100644
(file)
--- a/
fs/btrfs/volumes.c
+++ b/
fs/btrfs/volumes.c
@@
-1485,7
+1485,7
@@
static void update_dev_time(char *path_name)
struct file *filp;
filp = filp_open(path_name, O_RDWR, 0);
- if (
!filp
)
+ if (
IS_ERR(filp)
)
return;
file_update_time(filp);
filp_close(filp, NULL);