mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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:
parent
538a3a6e3d
commit
0f345aee16
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue