[lkml]   [2022]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH] Update spmi driver removal API
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(-)


 \ /
  Last update: 2022-12-04 10:24    [W:0.107 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site