commit | 6cf4511e9729c00a7306cf94085f9cc3c52ee723 | [log] [tgz] |
---|---|---|
author | Kangjie Lu <kjlu@umn.edu> | Sun Mar 24 18:10:02 2019 -0500 |
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Mon Mar 25 09:26:48 2019 +0100 |
tree | 5725259b33dc4479a21502412c95b2299ac06fc2 | |
parent | b45a02e13ee74b6fde56df4d76786058821a3aba [diff] |
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: Kangjie Lu <kjlu@umn.edu> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>