linux/drivers/staging/wfx
Colin Ian King 0469fc6a1a 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: f95a29d407 ("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>
2020-01-03 11:51:00 +01:00
..
Documentation/devicetree/bindings/net/wireless staging: wfx: fix spelling mistake "hexdecimal" -> "hexadecimal" 2019-10-08 14:46:21 +02:00
bh.c staging: wfx: device already handle sleep mode during scan 2019-12-18 15:56:26 +01:00
bh.h staging: wfx: add IRQ handling 2019-10-04 10:43:40 +02:00
bus.h staging: wfx: fix warning of line over 80 characters 2019-10-26 20:43:46 +02:00
bus_sdio.c staging: align to fix warnings of line over 80 characters 2019-11-14 11:10:48 +08:00
bus_spi.c staging: wfx: use meaningful names for CFG_BYTE_ORDER_* 2019-12-18 15:56:00 +01:00
data_rx.c staging: wfx: ensure that received hif messages are never modified 2019-12-18 15:56:04 +01:00
data_rx.h staging: wfx: ensure that received hif messages are never modified 2019-12-18 15:56:04 +01:00
data_tx.c staging: wfx: ensure that received hif messages are never modified 2019-12-18 15:56:04 +01:00
data_tx.h staging: wfx: ensure that received hif messages are never modified 2019-12-18 15:56:04 +01:00
debug.c staging: align to fix warnings of line over 80 characters 2019-11-14 11:10:48 +08:00
debug.h staging: wfx: allow to send commands to chip 2019-10-04 10:46:10 +02:00
fwio.c staging: wfx: use meaningful names for CFG_BYTE_ORDER_* 2019-12-18 15:56:00 +01:00
fwio.h staging: wfx: load firmware 2019-10-04 10:43:39 +02:00
hif_api_cmd.h staging: wfx: better naming for hif_req_join->short_preamble 2019-12-18 15:56:09 +01:00
hif_api_general.h staging: wfx: replace uintXX_t to uXX and intXX_t to sXX 2019-11-11 15:56:51 +01:00
hif_api_mib.h staging: wfx: better naming for hif_mib_set_association_mode->greenfield 2019-12-18 15:56:11 +01:00
hif_rx.c staging: wfx: rewrite wfx_hw_scan() 2019-12-18 15:56:30 +01:00
hif_rx.h staging: wfx: add support for start-up indication 2019-10-04 10:46:09 +02:00
hif_tx.c staging: wfx: check for memory allocation failures from wfx_alloc_hif 2020-01-03 11:51:00 +01:00
hif_tx.h staging: wfx: simplify hif_scan() usage 2019-12-18 15:56:27 +01:00
hif_tx_mib.h staging: wfx: simplify hif_set_template_frame() usage 2019-12-18 15:56:30 +01:00
hwio.c staging: align to fix warnings of line over 80 characters 2019-11-14 11:10:48 +08:00
hwio.h staging: wfx: use meaningful names for CFG_BYTE_ORDER_* 2019-12-18 15:56:00 +01:00
Kconfig staging: wfx: fix CONFIG_MMC=m with CONFIG_WFX=y 2019-10-26 20:42:32 +02:00
key.c staging: align to fix warnings of line over 80 characters 2019-11-14 11:10:48 +08:00
key.h staging: wfx: implement 802.11 key handling 2019-10-04 10:48:54 +02:00
main.c staging: wfx: implement cancel_hw_scan() 2019-12-18 15:56:33 +01:00
main.h staging: wfx: relocate wfx_fill_sl_key() in secure_link.h 2019-10-26 20:42:31 +02:00
Makefile staging: wfx: implement 802.11 key handling 2019-10-04 10:48:54 +02:00
queue.c staging: wfx: simplify hif_set_edca_queue_params() usage 2019-12-18 15:56:24 +01:00
queue.h staging: align to fix warnings of line over 80 characters 2019-11-14 11:10:48 +08:00
scan.c staging: wfx: implement cancel_hw_scan() 2019-12-18 15:56:33 +01:00
scan.h staging: wfx: implement cancel_hw_scan() 2019-12-18 15:56:33 +01:00
secure_link.h staging: wfx: ensure that received hif messages are never modified 2019-12-18 15:56:04 +01:00
sta.c staging: wfx: check for memory allocation failures from wfx_alloc_hif 2020-01-03 11:51:00 +01:00
sta.h staging: wfx: drop struct wfx_edca_params 2019-12-18 15:56:22 +01:00
TODO staging: wfx: update TODO 2019-12-18 15:56:33 +01:00
traces.h staging: wfx: ensure that traces never modify arguments 2019-12-18 15:56:03 +01:00
wfx.h staging: wfx: implement cancel_hw_scan() 2019-12-18 15:56:33 +01:00