From: Al Viro Date: Sun, 14 Dec 2014 07:59:17 +0000 (-0500) Subject: btrfs: filp_open() returns ERR_PTR() on failure, not NULL... X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aee8c188e403ed23de00549c1f82112e124c2f87;p=linux btrfs: filp_open() returns ERR_PTR() on failure, not NULL... Signed-off-by: Al Viro (cherry picked from commit 98af592f5bf863137ae2872ed03720f02fbc82c3) --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 2cb88d26c7f9..b9f2dd81c21a 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);