diff options
author | Colin Ian King <[email protected]> | 2019-12-21 00:15:43 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-01-03 11:51:00 +0100 |
commit | 0469fc6a1a8715b5c09117a26700da0d67061fb5 (patch) | |
tree | 5745d279338a9a51335371b91dcae49864df1bf1 /drivers/fpga/fpga-bridge.c | |
parent | 5f33771fb0ac484d6e8cc34cb1e27c37442cd0db (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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions