Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141050
b: refs/heads/master
c: 15152e4
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Mar 21, 2009
1 parent 499f3f8 commit add09ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: cbe28296eb1ac441b35cf45804d0ae808add7dd1
refs/heads/master: 15152e448b693fa41de40f1e40ffbe717a3aab88
9 changes: 3 additions & 6 deletions trunk/kernel/trace/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1260,12 +1260,10 @@ static int blk_trace_remove_queue(struct request_queue *q)
static int blk_trace_setup_queue(struct request_queue *q, dev_t dev)
{
struct blk_trace *old_bt, *bt = NULL;
int ret;

ret = -ENOMEM;
bt = kzalloc(sizeof(*bt), GFP_KERNEL);
if (!bt)
goto err;
return -ENOMEM;

bt->dev = dev;
bt->act_mask = (u16)-1;
Expand All @@ -1276,11 +1274,10 @@ static int blk_trace_setup_queue(struct request_queue *q, dev_t dev)
if (old_bt != NULL) {
(void)xchg(&q->blk_trace, old_bt);
kfree(bt);
ret = -EBUSY;
return -EBUSY;
}

return 0;
err:
return ret;
}

/*
Expand Down

0 comments on commit add09ba

Please sign in to comment.