Skip to content
Commit caf19d38 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by James Bottomley
Browse files

[SCSI] sg: fix bio leak with a detached device



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: default avatar"Dailey, Nate" <Nate.Dailey@stratus.com>
Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: default avatar"Dailey, Nate" <Nate.Dailey@stratus.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 240778e8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment