summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorQiheng Lin <linqiheng@huawei.com>2022-12-08 14:15:55 +0800
committerLee Jones <lee@kernel.org>2023-02-22 08:25:51 +0000
commit8b450dcff23aa254844492831a8e2b508a9d522d (patch)
tree2725931ffd0efaa6a2ed8ab6b2cf73e07083bec6 /drivers/s390
parent3a8678dfa857b671ff56de2573cb236fc6f0f0d2 (diff)
downloadlinux-8b450dcff23aa254844492831a8e2b508a9d522d.tar.gz
linux-8b450dcff23aa254844492831a8e2b508a9d522d.tar.bz2
linux-8b450dcff23aa254844492831a8e2b508a9d522d.zip
mfd: pcf50633-adc: Fix potential memleak in pcf50633_adc_async_read()
`req` is allocated in pcf50633_adc_async_read(), but adc_enqueue_request() could fail to insert the `req` into queue. We need to check the return value and free it in the case of failure. Fixes: 08c3e06a5eb2 ("mfd: PCF50633 adc driver") Signed-off-by: Qiheng Lin <linqiheng@huawei.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20221208061555.8776-1-linqiheng@huawei.com
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions