projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
604faa7
)
gpu: host1x: Check INCR opcode correctly
author
Terje Bergstrom
<tbergstrom@nvidia.com>
Wed, 29 May 2013 10:26:02 +0000
(13:26 +0300)
committer
Thierry Reding
<thierry.reding@gmail.com>
Sat, 22 Jun 2013 10:43:52 +0000
(12:43 +0200)
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>
drivers/gpu/host1x/job.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/host1x/job.c
b/drivers/gpu/host1x/job.c
index f665d679031c167c9ef9aa037c636ea64f3dcef2..2974ac8d70a790b69f21781e9465b951b9f84e16 100644
(file)
--- a/
drivers/gpu/host1x/job.c
+++ b/
drivers/gpu/host1x/job.c
@@
-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;