lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251013124129.708733-1-guanwentao@uniontech.com>
Date: Mon, 13 Oct 2025 20:41:29 +0800
From: Wentao Guan <guanwentao@...ontech.com>
To: srini@...nel.org
Cc: miquel.raynal@...tlin.com,
	mwalle@...nel.org,
	gregkh@...uxfoundation.org,
	linux-kernel@...r.kernel.org,
	zhanjun@...ontech.com,
	niecheng1@...ontech.com,
	Wentao Guan <guanwentao@...ontech.com>,
	stable@...r.kernel.org,
	WangYuli <wangyl5933@...naunicom.cn>
Subject: [PATCH v2] nvmem: layouts: fix nvmem_layout_bus_uevent

correctly check the ENODEV return value.

Fixes: 810b790033cc ("nvmem: layouts: fix automatic module loading")
CC: stable@...r.kernel.org
Co-developed-by: WangYuli <wangyl5933@...naunicom.cn>
Signed-off-by: WangYuli <wangyl5933@...naunicom.cn>
Signed-off-by: Wentao Guan <guanwentao@...ontech.com>
---
v2 changelog:
add cc stable.
---
Signed-off-by: Wentao Guan <guanwentao@...ontech.com>
---
 drivers/nvmem/layouts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvmem/layouts.c b/drivers/nvmem/layouts.c
index f381ce1e84bd..7ebe53249035 100644
--- a/drivers/nvmem/layouts.c
+++ b/drivers/nvmem/layouts.c
@@ -51,7 +51,7 @@ static int nvmem_layout_bus_uevent(const struct device *dev,
 	int ret;
 
 	ret = of_device_uevent_modalias(dev, env);
-	if (ret != ENODEV)
+	if (ret != -ENODEV)
 		return ret;
 
 	return 0;
-- 
2.20.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ