Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142313
b: refs/heads/master
c: 48ec00a
h: refs/heads/master
i:
  142311: 0ba8eeb
v: v3
  • Loading branch information
Adrian Hunter authored and David Woodhouse committed Mar 20, 2009
1 parent 3f2e538 commit d9e012c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: e2a0f25b4f520adbd82c0caafcde0470ed11053d
refs/heads/master: 48ec00ac895074f8a47bda8f3925ccaa46abb7a8
5 changes: 4 additions & 1 deletion trunk/drivers/mtd/mtdoops.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,10 @@ mtdoops_console_write(struct console *co, const char *s, unsigned int count)
spin_lock_irqsave(&cxt->writecount_lock, flags);

/* Check ready status didn't change whilst waiting for the lock */
if (!cxt->ready)
if (!cxt->ready) {
spin_unlock_irqrestore(&cxt->writecount_lock, flags);
return;
}

if (cxt->writecount == 0) {
u32 *stamp = cxt->oops_buf;
Expand Down Expand Up @@ -420,6 +422,7 @@ static int __init mtdoops_console_init(void)

cxt->mtd_index = -1;
cxt->oops_buf = vmalloc(OOPS_PAGE_SIZE);
spin_lock_init(&cxt->writecount_lock);

if (!cxt->oops_buf) {
printk(KERN_ERR "Failed to allocate mtdoops buffer workspace\n");
Expand Down

0 comments on commit d9e012c

Please sign in to comment.