[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.21.1906121311470.10335@pobox.suse.cz>
Date: Wed, 12 Jun 2019 13:12:10 +0200 (CEST)
From: Miroslav Benes <mbenes@...e.cz>
To: YueHaibing <yuehaibing@...wei.com>
cc: jeyu@...nel.org, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4] kernel/module: Fix mem leak in
module_add_modinfo_attrs
On Tue, 11 Jun 2019, YueHaibing wrote:
> In module_add_modinfo_attrs if sysfs_create_file
> fails, we forget to free allocated modinfo_attrs
> and roll back the sysfs files.
>
> Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Reviewed-by: Miroslav Benes <mbenes@...e.cz>
Miroslav
Powered by blists - more mailing lists