Skip to content

Commit

Permalink
replica_check_enqueue(): fix possible segfault (Invalid read)
Browse files Browse the repository at this point in the history
  • Loading branch information
takuya-isbs committed Mar 25, 2024
1 parent 2136570 commit 204e9ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/gfmd/replica_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@ replica_check_enqueue(struct inode *inode, struct dirset *tdirset,
spec.repattr = repattr;
replica_spec_dup(&info->replica_spec, &spec);
info->tdirset = tdirset;
dirset_inc_busy_count(tdirset);
if (tdirset != TDIRSET_IS_UNKNOWN && tdirset != TDIRSET_IS_NOT_SET)
dirset_inc_busy_count(tdirset);

replica_check_enqueue_internal(info, diag);
}
Expand Down

0 comments on commit 204e9ec

Please sign in to comment.