mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacmn: Access soc handle after null check
Dereference soc handle after checking if soc handle is valid. Change-Id: Ifc409ab410b0ff41ad7d45c422f147325d7adadf CRs-Fixed: 2382178
This commit is contained in:
parent
09387ef63c
commit
965035c642
1 changed files with 2 additions and 1 deletions
|
|
@ -6620,9 +6620,10 @@ dp_print_ring_stat_from_hal(struct dp_soc *soc, struct dp_srng *srng,
|
|||
int32_t hw_headp = -1;
|
||||
int32_t hw_tailp = -1;
|
||||
const char *ring_name;
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)soc->hal_soc;
|
||||
struct hal_soc *hal_soc;
|
||||
|
||||
if (soc && srng && srng->hal_srng) {
|
||||
hal_soc = (struct hal_soc *)soc->hal_soc;
|
||||
ring_name = dp_srng_get_str_from_hal_ring_type(ring_type);
|
||||
|
||||
hal_get_sw_hptp(soc->hal_soc, srng->hal_srng, &tailp, &headp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue