mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Fix potential NULL dereference in wma_set_he_txbf_params()
Add check to catch null pointer dereference Change-ID: I0ab1f297dbf6d2a6acaf7fb4b67c1d73170e295a CRs-Fixed: 2628057
This commit is contained in:
parent
7567bc26ee
commit
d28cdecf0d
1 changed files with 5 additions and 0 deletions
|
|
@ -1381,6 +1381,11 @@ void wma_set_he_txbf_params(uint8_t vdev_id, bool su_bfer,
|
|||
QDF_STATUS status;
|
||||
tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA);
|
||||
|
||||
if (!wma) {
|
||||
wma_err("Invalid WMA handle");
|
||||
return;
|
||||
}
|
||||
|
||||
hemu_mode = DOT11AX_HEMU_MODE;
|
||||
hemu_mode |= ((su_bfer << HE_SUBFER) | (su_bfee << HE_SUBFEE) |
|
||||
(mu_bfer << HE_MUBFER) | (su_bfee << HE_MUBFEE));
|
||||
|
|
|
|||
Loading…
Reference in a new issue