mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 12:31:00 +08:00
fix segv: zero out data structures
This commit is contained in:
parent
2e34c7598a
commit
3900543970
|
@ -1130,8 +1130,7 @@ queue_element_wakeup(struct fuse *f,
|
|||
|
||||
if(!qe->second_locked && qe->path2)
|
||||
{
|
||||
err = try_get_path(f,qe->nodeid2,qe->name2,qe->path2,
|
||||
qe->wnode2,true);
|
||||
err = try_get_path(f,qe->nodeid2,qe->name2,qe->path2,qe->wnode2,true);
|
||||
if(!err)
|
||||
qe->second_locked = true;
|
||||
else if(err != -EAGAIN)
|
||||
|
@ -1256,7 +1255,7 @@ get_path_common(struct fuse *f,
|
|||
err = try_get_path(f,nodeid,name,path,wnode,true);
|
||||
if(err == -EAGAIN)
|
||||
{
|
||||
struct lock_queue_element qe;
|
||||
struct lock_queue_element qe = {0};
|
||||
|
||||
qe.nodeid1 = nodeid;
|
||||
qe.name1 = name;
|
||||
|
@ -1352,7 +1351,7 @@ get_path2(struct fuse *f,
|
|||
path1,path2,wnode1,wnode2);
|
||||
if(err == -EAGAIN)
|
||||
{
|
||||
struct lock_queue_element qe;
|
||||
struct lock_queue_element qe = {0};
|
||||
|
||||
qe.nodeid1 = nodeid1;
|
||||
qe.name1 = name1;
|
||||
|
@ -1438,7 +1437,7 @@ forget_node(struct fuse *f,
|
|||
*/
|
||||
while(node->nlookup == nlookup && node->treelock)
|
||||
{
|
||||
struct lock_queue_element qe;
|
||||
struct lock_queue_element qe = {0};
|
||||
|
||||
qe.nodeid1 = nodeid;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user