bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 2/4] diskfs: Don't deallocate if dotdot is null in fsys-getro


From: Samuel Thibault
Subject: Re: [PATCH 2/4] diskfs: Don't deallocate if dotdot is null in fsys-getroot.c
Date: Fri, 31 Jul 2020 00:01:43 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Applied, thanks!

Damien Zammit, le mar. 28 juil. 2020 20:08:35 +1000, a ecrit:
> ---
>  libdiskfs/fsys-getroot.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c
> index 735f359a..2c0d15dd 100644
> --- a/libdiskfs/fsys-getroot.c
> +++ b/libdiskfs/fsys-getroot.c
> @@ -194,7 +194,8 @@ diskfs_S_fsys_getroot (struct diskfs_control *pt,
>  
>    if (! err)
>      {
> -      mach_port_deallocate (mach_task_self (), dotdot);
> +      if (dotdot != MACH_PORT_NULL)
> +        mach_port_deallocate (mach_task_self (), dotdot);
>        *retry = FS_RETRY_NORMAL;
>        *retryname = '\0';
>        *returned_port = ports_get_right (newpi);
> -- 
> 2.25.1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]