devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Update spmi driver removal API
@ 2022-12-04  9:22 Jishnu Prakash
  2022-12-04  9:23 ` [PATCH] spmi: Add check for remove callback in spmi_drv_remove API Jishnu Prakash
  0 siblings, 1 reply; 6+ messages in thread
From: Jishnu Prakash @ 2022-12-04  9:22 UTC (permalink / raw)
  To: agross, bjorn.andersson, devicetree, robh+dt, linus.walleij,
	quic_kamalw, quic_jestar, sboyd, quic_subbaram, quic_collinsd
  Cc: linux-arm-msm, linux-kernel, linux-arm-msm-owner, Jishnu Prakash

Add a check for remove callback presence before calling it, to avoid
NULL pointer dereference error when attempting to remove a SPMI driver
module which does not have the remove callback defined.

Jishnu Prakash (1):
  spmi: Add check for remove callback in spmi_drv_remove API

 drivers/spmi/spmi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.7.4


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

end of thread, other threads:[~2022-12-21  5:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-04  9:22 [PATCH] Update spmi driver removal API Jishnu Prakash
2022-12-04  9:23 ` [PATCH] spmi: Add check for remove callback in spmi_drv_remove API Jishnu Prakash
2022-12-13 12:04   ` Greg KH
2022-12-13 13:42     ` Jishnu Prakash
2022-12-13 15:09       ` Greg KH
2022-12-21  5:39         ` Jishnu Prakash

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).