mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
qcacld-3.0: Add null check to osdev object
Add null check to osdev to avoid invalid access. Change-Id: If34bc94cd23e3b4f1149a57b43bcc136575ec06c CRs-Fixed: 2658532
This commit is contained in:
parent
c6e19bbe85
commit
e6bb014360
1 changed files with 1 additions and 1 deletions
|
|
@ -720,7 +720,7 @@ QDF_STATUS ol_txrx_ipa_cleanup(uint32_t tx_pipe_handle, uint32_t rx_pipe_handle)
|
|||
ol_txrx_pdev_handle pdev =
|
||||
ol_txrx_get_pdev_from_pdev_id(soc, OL_TXRX_PDEV_ID);
|
||||
|
||||
if (!pdev) {
|
||||
if (!pdev || !osdev) {
|
||||
ol_txrx_err("%s invalid instance", __func__);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue