Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64c173d3 authored by Terje Bergstrom's avatar Terje Bergstrom Committed by Thierry Reding
Browse files

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: default avatarTerje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: default avatarArto Merilainen <amerilainen@nvidia.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 604faa7d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;