mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
irqchip/gic-v3-its: Zero command on allocation
When reusing commands from the ring buffer, it would be better to zero them out, even if the ITS should ignore the unused fields. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
This commit is contained in:
parent
5bc13c2cbe
commit
34d677a90f
1 changed files with 6 additions and 0 deletions
|
|
@ -411,6 +411,12 @@ static struct its_cmd_block *its_allocate_entry(struct its_node *its)
|
|||
if (its->cmd_write == (its->cmd_base + ITS_CMD_QUEUE_NR_ENTRIES))
|
||||
its->cmd_write = its->cmd_base;
|
||||
|
||||
/* Clear command */
|
||||
cmd->raw_cmd[0] = 0;
|
||||
cmd->raw_cmd[1] = 0;
|
||||
cmd->raw_cmd[2] = 0;
|
||||
cmd->raw_cmd[3] = 0;
|
||||
|
||||
return cmd;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue