Re: [PATCH] libhandle: zap fdhash_head in fshandle_destroy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 06, 2017 at 09:54:01AM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
> 
> Set fdhash_head to zero once we've destroyed the handle list to avoid
> dangling pointer problems.

Ping?

(The xfsprogs update announcement said to resend, but meh.)

--D

> Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
> ---
>  libhandle/handle.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libhandle/handle.c b/libhandle/handle.c
> index e6971dd..878d14d 100644
> --- a/libhandle/handle.c
> +++ b/libhandle/handle.c
> @@ -73,6 +73,7 @@ fshandle_destroy(void)
>  		free(h);
>  		h = nexth;
>  	}
> +	fdhash_head = NULL;
>  }
>  
>  int
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux