summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-max77620.c
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2019-03-25 00:10:02 +0100
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2019-03-25 09:26:48 +0100
commit6cf4511e9729c00a7306cf94085f9cc3c52ee723 (patch)
tree5725259b33dc4479a21502412c95b2299ac06fc2 /drivers/gpio/gpio-max77620.c
parentgpio: amd-fch: Fix bogus SPDX identifier (diff)
downloadlinux-6cf4511e9729c00a7306cf94085f9cc3c52ee723.tar.xz
linux-6cf4511e9729c00a7306cf94085f9cc3c52ee723.zip
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>
Diffstat (limited to 'drivers/gpio/gpio-max77620.c')
0 files changed, 0 insertions, 0 deletions