Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189677
b: refs/heads/master
c: 01a356f
h: refs/heads/master
i:
  189675: e4a43f0
v: v3
  • Loading branch information
Dan Carpenter authored and Dave Airlie committed Apr 7, 2010
1 parent 3249d61 commit faa511c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba1163de2f74d624e7b0e530c4104c98ede0045a
refs/heads/master: 01a356fd2a5f5e72e783312037ace05df4ab4e32
7 changes: 5 additions & 2 deletions trunk/drivers/gpu/drm/radeon/atom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,7 @@ static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32
int len, ws, ps, ptr;
unsigned char op;
atom_exec_context ectx;
int ret = 0;

if (!base)
return -EINVAL;
Expand Down Expand Up @@ -1168,7 +1169,8 @@ static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32
if (ectx.abort) {
DRM_ERROR("atombios stuck executing %04X (len %d, WS %d, PS %d) @ 0x%04X\n",
base, len, ws, ps, ptr - 1);
return -EINVAL;
ret = -EINVAL;
goto free;
}

if (op < ATOM_OP_CNT && op > 0)
Expand All @@ -1183,9 +1185,10 @@ static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32
debug_depth--;
SDEBUG("<<\n");

free:
if (ws)
kfree(ectx.ws);
return 0;
return ret;
}

int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params)
Expand Down

0 comments on commit faa511c

Please sign in to comment.