From: srini@kernel.org
To: gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org,
Wentao Guan <guanwentao@uniontech.com>,
stable@vger.kernel.org, WangYuli <wangyl5933@chinaunicom.cn>,
Srinivas Kandagatla <srini@kernel.org>
Subject: [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent
Date: Fri, 14 Nov 2025 11:05:39 +0000 [thread overview]
Message-ID: <20251114110539.143154-1-srini@kernel.org> (raw)
From: Wentao Guan <guanwentao@uniontech.com>
correctly check the ENODEV return value.
Fixes: 810b790033cc ("nvmem: layouts: fix automatic module loading")
CC: stable@vger.kernel.org
Co-developed-by: WangYuli <wangyl5933@chinaunicom.cn>
Signed-off-by: WangYuli <wangyl5933@chinaunicom.cn>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
Hi Greg,
There is only one nvmem fix in this cycle,
Can you pl pick this fix for 6.18 release.
thanks,
--srini
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.51.0
next reply other threads:[~2025-11-14 11:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-14 11:05 srini [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-13 11:59 [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent Wentao Guan
2025-10-13 12:23 ` Srinivas Kandagatla
2025-10-13 12:31 ` Wentao Guan
2025-10-13 12:33 ` Srinivas Kandagatla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251114110539.143154-1-srini@kernel.org \
--to=srini@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=guanwentao@uniontech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=wangyl5933@chinaunicom.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox