lkml.org 
[lkml]   [2019]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 1/2] mfd: rk808: Check pm_power_off pointer
On Fri, 07 Jun 2019, Stefan Mavrodiev wrote:

> The function pointer pm_power_off may point to function from other
> module (PSCI for example). If rk808 is removed, pm_power_off is
> overwritten to NULL and the system cannot be powered off.
>
> This patch checks if pm_power_off points to a module function.
>
> Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
> ---
> Changes is v3:
> - Add explanation comments
> Changes in v2:
> - Initial release actually
>
> drivers/mfd/rk808.c | 17 +++++++++++------
> include/linux/mfd/rk808.h | 1 +
> 2 files changed, 12 insertions(+), 6 deletions(-)

Applied, thanks.

--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

\
 
 \ /
  Last update: 2019-06-12 11:42    [W:0.039 / U:15.380 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site