commit | 98af592f5bf863137ae2872ed03720f02fbc82c3 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Dec 14 02:59:17 2014 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Dec 17 06:43:56 2014 -0500 |
tree | 8d38b5f2becd7cbce160a2d7ccdafc2082c75159 | |
parent | 603ba7e41bf5d405aba22294af5d075d8898176d [diff] |
btrfs: filp_open() returns ERR_PTR() on failure, not NULL... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 0144790..50c5a87 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c
@@ -1485,7 +1485,7 @@ 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);