Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94199
b: refs/heads/master
c: 60c1645
h: refs/heads/master
i:
  94197: 8f48872
  94195: 525c4a7
  94191: e096daf
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Apr 28, 2008
1 parent b69bd68 commit aa54018
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 0e27aa3dabb541edee9f23b37114856a528de01e
refs/heads/master: 60c1645dfac320e992bb5635887b7698ae6606bc
7 changes: 4 additions & 3 deletions trunk/drivers/video/uvesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ static int uvesafb_exec(struct uvesafb_ktask *task)
/* If all slots are taken -- bail out. */
if (uvfb_tasks[seq]) {
mutex_unlock(&uvfb_lock);
return -EBUSY;
err = -EBUSY;
goto out;
}

/* Save a pointer to the kernel part of the task struct. */
Expand All @@ -205,7 +206,6 @@ static int uvesafb_exec(struct uvesafb_ktask *task)
err = cn_netlink_send(m, 0, gfp_any());
}
}
kfree(m);

if (!err && !(task->t.flags & TF_EXIT))
err = !wait_for_completion_timeout(task->done,
Expand All @@ -218,7 +218,8 @@ static int uvesafb_exec(struct uvesafb_ktask *task)
seq++;
if (seq >= UVESAFB_TASKS_MAX)
seq = 0;

out:
kfree(m);
return err;
}

Expand Down

0 comments on commit aa54018

Please sign in to comment.