public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mfd: ls2kbmc: Fix a couple Smatch warnings
@ 2025-10-03  9:28 Dan Carpenter
  2025-10-03  9:29 ` [PATCH 1/2] mfd: ls2kbmc: Fix an IS_ERR() vs NULL check in probe() Dan Carpenter
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Dan Carpenter @ 2025-10-03  9:28 UTC (permalink / raw)
  To: Binbin Zhou
  Cc: Chong Qiao, Corey Minyard, Huacai Chen, Lee Jones, linux-kernel

These are two issues which were detected by Smatch.  They're not really
going to happen in real life.  Small kmalloc()s can't fail.
The devm_mfd_add_devices() function isn't going to fail either...

But still, they're worth fixing just for correctness sake.

Dan Carpenter (2):
  mfd: ls2kbmc: Fix an IS_ERR() vs NULL check in probe()
  mfd: ls2kbmc: check for devm_mfd_add_devices() failure

 drivers/mfd/ls2k-bmc-core.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-10-09 10:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-03  9:28 [PATCH 0/2] mfd: ls2kbmc: Fix a couple Smatch warnings Dan Carpenter
2025-10-03  9:29 ` [PATCH 1/2] mfd: ls2kbmc: Fix an IS_ERR() vs NULL check in probe() Dan Carpenter
2025-10-03  9:29 ` [PATCH 2/2] mfd: ls2kbmc: check for devm_mfd_add_devices() failure Dan Carpenter
2025-10-03 15:38 ` [PATCH 0/2] mfd: ls2kbmc: Fix a couple Smatch warnings Corey Minyard
2025-10-08 14:03   ` Lee Jones
2025-10-09  9:56     ` Lee Jones
2025-10-09  3:07 ` Huacai Chen
2025-10-09 10:01 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox