linux/drivers/staging/rtlwifi
Aditya Pakki 6a8ca24590 staging: rtlwifi: Fix potential NULL pointer dereference of kzalloc
phydm.internal is allocated using kzalloc which is used multiple
times without a check for NULL pointer. This patch avoids such a
scenario by returning 0, consistent with the failure case.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-21 08:32:58 +01:00
..
btcoexist Staging: rtlwifi: Remove Unneeded funition halbtc_get_wifi_rssi() 2018-11-05 14:16:32 +01:00
halmac staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx 2019-02-21 10:58:11 +01:00
phydm staging: rtlwifi: Fix potential NULL pointer dereference of kzalloc 2019-03-21 08:32:58 +01:00
rtl8822be staging: rtlwifi: rtl8822b: fix to avoid potential NULL pointer dereference 2019-03-21 08:32:57 +01:00
base.c staging: rtlwifi: SET_RATE_ID inline no arg reuse 2018-11-07 13:07:26 +01:00
base.h staging: rb8822be Change line not to end with '(' 2018-11-27 10:07:08 +01:00
cam.c staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
cam.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
core.c staging: rtlwifi: Add new line to stay in 80 characters 2018-11-20 10:53:54 +01:00
core.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
debug.c staging: rtlwifi: don't check the return value of debugfs_create_file 2018-06-01 10:47:43 +02:00
debug.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
efuse.c staging: rtlwifi: Remove set but not used variables 'dataempty, hoffset' 2019-02-19 11:18:00 +01:00
efuse.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
Kconfig staging: rtlwifi: replace ---help--- with help in Kconfig 2019-01-30 15:38:50 +01:00
Makefile staging: r8822be: Add Makefiles and Kconfig for new driver 2017-08-20 11:13:12 -07:00
pci.c staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
pci.h drivers: staging: rtlwifi: Start statement on a tabstop 2019-01-30 15:38:50 +01:00
ps.c staging: rtlwifi: Add spaces to match open parenthesis 2018-11-20 10:53:54 +01:00
ps.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
pwrseqcmd.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
rc.c staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
rc.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
regd.c Staging: rtlwifi: remove unnecessary NULL check 2018-09-25 20:51:33 +02:00
regd.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
stats.c staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
stats.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
TODO staging: rtlwifi: Reviewers fixes 2017-08-20 11:13:12 -07:00
wifi.h staging: rtlwifi: Removed unused define and code efuse_re_pg* from wifi.h 2018-10-02 15:18:37 -07:00