mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
btrfs: filp_open() returns ERR_PTR() on failure, not NULL...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
603ba7e41b
commit
98af592f5b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue