path: root/drivers/iio/adc
diff options
authorColin Ian King <colin.king@canonical.com>2019-12-21 00:15:43 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-03 11:51:00 +0100
commit0469fc6a1a8715b5c09117a26700da0d67061fb5 (patch)
tree5745d279338a9a51335371b91dcae49864df1bf1 /drivers/iio/adc
parent5f33771fb0ac484d6e8cc34cb1e27c37442cd0db (diff)
staging: wfx: check for memory allocation failures from wfx_alloc_hif
Currently calls to wfx_alloc_hif are not checking for a null return when a memory allocation fails and this leads to null pointer dereferencing issues. Fix this by adding null pointer checks and returning passing down -ENOMEM errors where necessary. The error checking in the current driver is a bit sparse, so this may need some extra attention later if required. Fixes: f95a29d40782 ("staging: wfx: add HIF commands helpers") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20191221001543.15255-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/adc')
0 files changed, 0 insertions, 0 deletions