Re: [PATCH] power: charger-manager: fix a potential NULL pointer dereference

2019-04-05 Thread Sebastian Reichel
Hi, On Thu, Mar 14, 2019 at 01:02:47AM -0500, Kangjie Lu wrote: > In case create_freezable_workqueue fails, the fix return -ENOMEM > to avoid a potential NULL pointer dereference. > > Signed-off-by: Kangjie Lu > --- Thanks, queued. -- Sebastian > drivers/power/supply/charger-manager.c | 3 ++

[PATCH] power: charger-manager: fix a potential NULL pointer dereference

2019-03-13 Thread Kangjie Lu
In case create_freezable_workqueue fails, the fix return -ENOMEM to avoid a potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/power/supply/charger-manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supp