Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21111
b: refs/heads/master
c: 8669aaf
h: refs/heads/master
i:
  21109: 34ce995
  21107: d3442a0
  21103: 7396c53
v: v3
  • Loading branch information
Al Viro committed Mar 18, 2006
1 parent 517e1f9 commit 411fe00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: afc847b7ddcf636e524cf5b0de644bd3a9419a8c
refs/heads/master: 8669aafdb5a46a57366dd1540fc475544071a9c9
10 changes: 5 additions & 5 deletions trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1854,8 +1854,10 @@ blk_init_queue_node(request_fn_proc *rfn, spinlock_t *lock, int node_id)
return NULL;

q->node = node_id;
if (blk_init_free_list(q))
goto out_init;
if (blk_init_free_list(q)) {
kmem_cache_free(requestq_cachep, q);
return NULL;
}

/*
* if caller didn't supply a lock, they get per-queue locking with
Expand Down Expand Up @@ -1891,9 +1893,7 @@ blk_init_queue_node(request_fn_proc *rfn, spinlock_t *lock, int node_id)
return q;
}

blk_cleanup_queue(q);
out_init:
kmem_cache_free(requestq_cachep, q);
blk_put_queue(q);
return NULL;
}
EXPORT_SYMBOL(blk_init_queue_node);
Expand Down

0 comments on commit 411fe00

Please sign in to comment.