Skip to content

Commit

Permalink
dvp can be passed into setunlink()
Browse files Browse the repository at this point in the history
If so, we need to hold it.

Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Sep 8, 2023
1 parent 241d8f6 commit 03a3d1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/os/windows/zfs/zfs_vnops_windows_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2912,6 +2912,8 @@ zfs_setunlink(FILE_OBJECT *fo, vnode_t *dvp)
// zfs_parent() holds dvp
if (dvp == NULL)
dvp = zfs_parent(vp);
else
VN_HOLD(dvp);

if (dvp == NULL) {
Status = STATUS_INVALID_PARAMETER;
Expand Down

0 comments on commit 03a3d1f

Please sign in to comment.