]> git.hungrycats.org Git - linux/commitdiff
btrfs: filp_open() returns ERR_PTR() on failure, not NULL...
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Dec 2014 07:59:17 +0000 (02:59 -0500)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Sun, 8 Mar 2015 04:03:35 +0000 (23:03 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
(cherry picked from commit 98af592f5bf863137ae2872ed03720f02fbc82c3)

fs/btrfs/volumes.c

index 65667d54c2eb9bc7536206d501945f3264a0c88c..e0bdb35a2026cf2bd22c8650ac2d10e69b32d16e 100644 (file)
@@ -1489,7 +1489,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);