|
@@ -105,6 +105,8 @@ noinline void btrfs_clear_path_blocking(struct btrfs_path *p,
|
|
/* this also releases the path */
|
|
/* this also releases the path */
|
|
void btrfs_free_path(struct btrfs_path *p)
|
|
void btrfs_free_path(struct btrfs_path *p)
|
|
{
|
|
{
|
|
|
|
+ if (!p)
|
|
|
|
+ return;
|
|
btrfs_release_path(NULL, p);
|
|
btrfs_release_path(NULL, p);
|
|
kmem_cache_free(btrfs_path_cachep, p);
|
|
kmem_cache_free(btrfs_path_cachep, p);
|
|
}
|
|
}
|