mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacmn: Fix null pointer dereference, wlan_cp_stats_psoc_obj_create_handler
In wlan_cp_stats_psoc_obj_create_handler() multiple error paths lead to label wlan_cp_stats_psoc_obj_create_handler_return. In the label, posc_cs is not null checked before passing to the csc->cp_stats_psoc_obj_deinit() causing NULL pointer dereference. Change-Id: I82a48cee7d2734a96960aeedff42fc4cdf94bf9c CRs-Fixed: 2336830
This commit is contained in:
parent
77d877285a
commit
38d7f92a30
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ wlan_cp_stats_psoc_obj_create_handler(struct wlan_objmgr_psoc *psoc, void *arg)
|
|||
wlan_cp_stats_psoc_obj_create_handler_return:
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
if (csc) {
|
||||
if (csc->cp_stats_psoc_obj_deinit)
|
||||
if (csc->cp_stats_psoc_obj_deinit && psoc_cs)
|
||||
csc->cp_stats_psoc_obj_deinit(psoc_cs);
|
||||
|
||||
if (csc->psoc_cs) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue