[PATCH] Update spmi driver removal API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux