summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-sprd.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-04-12 18:01:01 +0200
committerJarkko Sakkinen <jarkko@kernel.org>2021-04-14 15:30:31 +0200
commitaec00aa04b1131e17e6744681b380779f89d77b3 (patch)
treeca25ca1f1a11057bcdf5937e47f15875fd1da6af /drivers/pwm/pwm-sprd.c
parentchar: tpm: fix error return code in tpm_cr50_i2c_tis_recv() (diff)
downloadlinux-aec00aa04b1131e17e6744681b380779f89d77b3.tar.xz
linux-aec00aa04b1131e17e6744681b380779f89d77b3.zip
KEYS: trusted: Fix missing null return from kzalloc call
The kzalloc call can return null with the GFP_KERNEL flag so add a null check and exit via a new error exit label. Use the same exit error label for another error path too. Addresses-Coverity: ("Dereference null return value") Fixes: 830027e2cb55 ("KEYS: trusted: Add generic trusted keys framework") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'drivers/pwm/pwm-sprd.c')
0 files changed, 0 insertions, 0 deletions