Files
linux/drivers/gpio/gpio-aspeed.c
Kangjie Lu c87a5086d3 gpio: aspeed: fix a potential NULL pointer dereference
[ Upstream commit 6cf4511e97 ]

In case devm_kzalloc, the patch returns ENOMEM to avoid potential
NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
2019-05-04 09:20:19 +02:00

31 KiB