bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH] libdiskfs: fix reference counting of peropen objects


From: Justus Winter
Subject: Re: [PATCH] libdiskfs: fix reference counting of peropen objects
Date: Sun, 31 Aug 2014 11:45:04 +0200
User-agent: alot/0.3.5

Quoting Samuel Thibault (2014-08-29 23:13:08)
> Justus Winter, le Fri 29 Aug 2014 11:33:44 +0200, a écrit :
> > Previously, peropen objects were created with a reference count of
> > zero.  Therefore, if diskfs_create_protid fails, passing such an
> > object to diskfs_release_peropen would lead to a reference count
> > underflow.
> 
> I see, it is indeed more convenient this way.  Please also update the
> doc/hurd.texi documentation.

Ok, I will.

> It seems that libnetfs doesn't even care about calling netfs_release_peropen
> on diskfs_make_protid errors, thus leaking the peropen memory. Are you
> having a look already?

No.

Cheers,
Justus



reply via email to

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