git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
240778e
)
[SCSI] sg: fix bio leak with a detached device
author
FUJITA Tomonori
<fujita.tomonori@lab.ntt.co.jp>
Thu, 22 Jul 2010 00:36:51 +0000
(09:36 +0900)
committer
James Bottomley
<James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:06:05 +0000
(09:06 -0500)
After blk_rq_map_user is successful, if we find that a device is
unavailable (was detached), we must call blk_end_request_all to free
bio(s) before blk_rq_unmap_user and blk_put_request.
Reported-by: "Dailey, Nate" <Nate.Dailey@stratus.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: "Dailey, Nate" <Nate.Dailey@stratus.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/sg.c
patch
|
blob
|
history
diff --cc
drivers/scsi/sg.c
Simple merge