diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index f4e90748940abf6c1f36f3186177e4640bd24546..b332ff04c5ee6d2d5347a806209b755c50852b6e 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -1414,6 +1414,8 @@ struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, void free_ipath(struct inode_fs_paths *ipath) { + if (!ipath) + return; kfree(ipath->fspath); kfree(ipath); }