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:
Ananya Gupta 2020-04-06 19:17:58 +05:30 committed by nshrivas
parent c6e19bbe85
commit e6bb014360

View File

@ -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;
}