Skip to content
Commit 6cf4511e authored by Kangjie Lu's avatar Kangjie Lu Committed by Bartosz Golaszewski
Browse files

gpio: aspeed: fix a potential NULL pointer dereference



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

Signed-off-by: default avatarKangjie Lu <kjlu@umn.edu>
Reviewed-by: default avatarAndrew Jeffery <andrew@aj.id.au>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent b45a02e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment