qcacmn: Fix for NULL check reference in hif_get_hal_handle()

Fixe for Null check dereferencing pointers

Change-Id: I706b5959a85ab381594d7cab7e7dba95435f85f5
CRs-Fixed: 2230161
This commit is contained in:
Akshay Kosigi 2018-04-23 16:27:10 +05:30 • committed by nshrivas
commit 0f345aee16

View file

@ -210,6 +210,10 @@ struct hif_softc {
static inline void *hif_get_hal_handle(void *hif_hdl)
{
struct hif_softc *sc = (struct hif_softc *)hif_hdl;
if (!sc)
return NULL;
return sc->hal_soc;
}