]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: cros-ec-regulator: Add NULL test for devm_kmemdup call
authorAxel Lin <axel.lin@ingics.com>
Sun, 2 Aug 2020 03:25:09 +0000 (11:25 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 4 Aug 2020 12:24:37 +0000 (13:24 +0100)
commita855359bea5e55c8e3c0ac9e94e1cc2d9ae11553
tree8f8cf28034435c6916d3652c38be928b3d22bdfa
parent1b1d683d7a5bcd908c10552ab0a4cacaf0d82e47
regulator: cros-ec-regulator: Add NULL test for devm_kmemdup call

Fix possible NULL pointer dereference.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20200802032509.305425-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/cros-ec-regulator.c