[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9f6acb84-02cb-4f76-bf37-e79b87157f1e@web.de>
Date: Sun, 28 Sep 2025 15:48:23 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Li Chen <chenl311@...natelecom.cn>, linux-block@...r.kernel.org,
Jens Axboe <axboe@...nel.dk>
Cc: Li Chen <me@...ux.beauty>, LKML <linux-kernel@...r.kernel.org>,
Yang Erkun <yangerkun@...wei.com>
Subject: Re: [PATCH] loop: fix backing file reference leak on validation error
…
> Fix this by calling fput(file) before returning the error.
…
> +++ b/drivers/block/loop.c
…
How do you think about to increase the application of scope-based resource management?
https://elixir.bootlin.com/linux/v6.17-rc7/source/include/linux/file.h#L97
Regards,
Markus
Powered by blists - more mailing lists