[PATCH 0/8] staging: wfx: fix issues reported by Smatch

From: Jerome Pouiller
Date: Fri Oct 09 2020 - 13:13:25 EST


From: Jérôme Pouiller <jerome.pouiller@xxxxxxxxxx>

Fix the issues reported by Dan using Smatch[1].

[1] https://lore.kernel.org/lkml/20201008131320.GA1042@kadam/

Jérôme Pouiller (8):
staging: wfx: improve error handling of hif_join()
staging: wfx: check memory allocation
staging: wfx: standardize the error when vif does not exist
staging: wfx: wfx_init_common() returns NULL on error
staging: wfx: increase robustness of hif_generic_confirm()
staging: wfx: gpiod_get_value() can return an error
staging: wfx: drop unicode characters from strings
staging: wfx: improve robustness of wfx_get_hw_rate()

drivers/staging/wfx/bh.c | 2 +-
drivers/staging/wfx/data_tx.c | 9 ++++++-
drivers/staging/wfx/hif_rx.c | 44 +++++++++++++++++++++++------------
drivers/staging/wfx/hif_tx.c | 4 +++-
drivers/staging/wfx/main.c | 10 ++++++--
drivers/staging/wfx/sta.c | 4 ++++
6 files changed, 53 insertions(+), 20 deletions(-)

--
2.28.0