Re: [PATCH] regulator: cros-ec-regulator: Add NULL test for devm_kmemdup call

2020-08-03 Thread Mark Brown
On Sun, 2 Aug 2020 11:25:09 +0800, Axel Lin wrote: > Fix possible NULL pointer dereference. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: cros-ec-regulator: Add NULL test for devm_kmemdup call commit:

[PATCH] regulator: cros-ec-regulator: Add NULL test for devm_kmemdup call

2020-08-01 Thread Axel Lin
Fix possible NULL pointer dereference. Signed-off-by: Axel Lin --- drivers/regulator/cros-ec-regulator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/regulator/cros-ec-regulator.c b/drivers/regulator/cros-ec-regulator.c index 3117bbd2826b..eb3fc1db4edc 100644 ---