[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Ztl8yWZMhjSExF4L@bombadil.infradead.org>
Date: Thu, 5 Sep 2024 02:41:29 -0700
From: Luis Chamberlain <mcgrof@...nel.org>
To: Chunhui Li <chunhui.li@...iatek.com>
Cc: Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
linux-modules@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, wsd_upstream@...iatek.com,
kernel test robot <lkp@...el.com>,
Xion Wang <xion.wang@...iatek.com>
Subject: Re: [PATCH v2] module: abort module loading when sysfs setup suffer
errors
On Wed, Sep 04, 2024 at 08:41:07PM +0800, Chunhui Li wrote:
> When insmod a kernel module, if fails in add_notes_attrs or
> add_sysfs_attrs such as memory allocation fail, mod_sysfs_setup
> will still return success, but we can't access user interface
> on android device.
>
> Patch for make mod_sysfs_setup can check the error of
> add_notes_attrs and add_sysfs_attrs.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202409010016.3XIFSmRA-lkp@intel.com/
> Signed-off-by: Xion Wang <xion.wang@...iatek.com>
> Signed-off-by: Chunhui Li <chunhui.li@...iatek.com>
Please use Fixes tag and resend.
Luis
Powered by blists - more mailing lists