mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 07:16:45 +07:00
blkback: Fix potential resource leak.
This commit is contained in:
parent
dd3672424c
commit
8270b45bc8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user