[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240904161027.GD1909087@ziepe.ca>
Date: Wed, 4 Sep 2024 13:10:27 -0300
From: Jason Gunthorpe <jgg@...pe.ca>
To: Liu Jing <liujing@...s.chinamobile.com>
Cc: kevin.tian@...el.com, shuah@...nel.org, iommu@...ts.linux.dev,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iommufd/selftest:fix a resource leak
On Wed, Sep 04, 2024 at 04:08:06AM +0800, Liu Jing wrote:
> If the file fails to open, not only return return1 but also close the file descriptor,otherwise resource
> leak will occur
Why doesn't FIXURE_TEARDOWN do this?
Jason
Powered by blists - more mailing lists