Skip to content
Commit 13814627 authored by Kangjie Lu's avatar Kangjie Lu Committed by Jonathan Cameron
Browse files

iio: adc: fix a potential NULL pointer dereference



devm_iio_trigger_alloc may fail and return NULL. The fix returns
ENOMEM when it fails.

Signed-off-by: default avatarKangjie Lu <kjlu@umn.edu>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent d43102f5
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