mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "msm: ipa: Fix use-after-free in ipa3_alloc_counter_id"
This commit is contained in:
commit
59ba38c627
1 changed files with 1 additions and 1 deletions
|
|
@ -7058,9 +7058,9 @@ mark_sw_cnt:
|
|||
done:
|
||||
/* get a handle from idr for dealloc */
|
||||
counter->hdl = __ipa3_alloc_counter_hdl(counter);
|
||||
memcpy(header, counter, sizeof(struct ipa_ioc_flt_rt_counter_alloc));
|
||||
spin_unlock(&ipa3_ctx->flt_rt_counters.hdl_lock);
|
||||
idr_preload_end();
|
||||
memcpy(header, counter, sizeof(struct ipa_ioc_flt_rt_counter_alloc));
|
||||
return 0;
|
||||
|
||||
err:
|
||||
|
|
|
|||
Loading…
Reference in a new issue