diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-12-14 08:59:17 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-12-17 12:43:56 +0100 |
commit | 98af592f5bf863137ae2872ed03720f02fbc82c3 (patch) | |
tree | 8d38b5f2becd7cbce160a2d7ccdafc2082c75159 /fs/btrfs | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir... (diff) | |
download | linux-98af592f5bf863137ae2872ed03720f02fbc82c3.tar.xz linux-98af592f5bf863137ae2872ed03720f02fbc82c3.zip |
btrfs: filp_open() returns ERR_PTR() on failure, not NULL...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 0144790e296e..50c5a8762aed 100644 --- 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); |