projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd36724
)
blkback: Fix potential resource leak.
author
Keir Fraser
<keir.fraser@citrix.com>
Fri, 6 Mar 2009 08:29:15 +0000
(08:29 +0000)
committer
Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com>
Thu, 14 Apr 2011 22:26:00 +0000
(18:26 -0400)
drivers/xen/blkback/blkback.c
patch
|
blob
|
history
diff --git
a/drivers/xen/blkback/blkback.c
b/drivers/xen/blkback/blkback.c
index
43fd070
..
8d988f4
100644
(file)
--- a/
drivers/xen/blkback/blkback.c
+++ b/
drivers/xen/blkback/blkback.c
@@
-318,14
+318,14
@@
static int do_block_io_op(blkif_t *blkif)
if (RING_REQUEST_CONS_OVERFLOW(&blk_rings->common, rc))
break;
- pending_req = alloc_req();
- if (NULL == pending_req) {
- blkif->st_oo_req++;
+ if (kthread_should_stop()) {
more_to_do = 1;
break;
}
- if (kthread_should_stop()) {
+ pending_req = alloc_req();
+ if (NULL == pending_req) {
+ blkif->st_oo_req++;
more_to_do = 1;
break;
}