Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98af592f authored by Al Viro's avatar Al Viro
Browse files

btrfs: filp_open() returns ERR_PTR() on failure, not NULL...



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 603ba7e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);