mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-15 11:46:35 +00:00
scoutfs: Don't destroy sroot unless srch_search_xattrs() was called
Until then, sroot is uninitialized so it's not safe to call destroy_rb_root(). Signed-off-by: Andy Grover <agrover@versity.com>
This commit is contained in:
+3
-1
@@ -836,8 +836,10 @@ static long scoutfs_ioc_search_xattrs(struct file *file, unsigned long arg)
|
||||
ret = -EFAULT;
|
||||
else
|
||||
ret = 0;
|
||||
out:
|
||||
|
||||
scoutfs_srch_destroy_rb_root(&sroot);
|
||||
|
||||
out:
|
||||
kfree(name);
|
||||
return ret ?: total;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user