mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
gsi: Init rp_update_vaddr at event ring init
Leaving this field 0 may lead to a crash during the first gsi_poll_n_channel() call. Change-Id: I6c8e9e1e5bacdddd41023618881d761d730a1931 Signed-off-by: Ilia Lin <ilial@codeaurora.org>
This commit is contained in:
parent
8f3cb08e2c
commit
f8bfa48848
1 changed files with 3 additions and 0 deletions
|
|
@ -1543,6 +1543,9 @@ static void gsi_init_evt_ring(struct gsi_evt_ring_props *props,
|
|||
ctx->elem_sz = props->re_size;
|
||||
ctx->max_num_elem = ctx->len / ctx->elem_sz - 1;
|
||||
ctx->end = ctx->base + (ctx->max_num_elem + 1) * ctx->elem_sz;
|
||||
|
||||
if (props->rp_update_vaddr)
|
||||
*(uint64_t *)(props->rp_update_vaddr) = ctx->rp_local;
|
||||
}
|
||||
|
||||
static void gsi_prime_evt_ring(struct gsi_evt_ctx *ctx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue