mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 04:10:51 +07:00
gpu: host1x: Check INCR opcode correctly
The firewall code used a wrong loop condition (pointer to a structure) while checking INCR opcode. This patch fixes the code to use correct loop condition (number of words remaining). Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
604faa7dcf
commit
64c173d3a2
@ -330,7 +330,7 @@ static int check_incr(struct host1x_firewall *fw)
|
||||
u32 count = fw->count;
|
||||
u32 reg = fw->reg;
|
||||
|
||||
while (fw) {
|
||||
while (count) {
|
||||
if (fw->words == 0)
|
||||
return -EINVAL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user