Skip to content
Commit 17a05cca authored by Christian Engelmayer's avatar Christian Engelmayer Committed by Jens Axboe
Browse files

block: Fix memory leak in rw_copy_check_uvector() handling



Fix a memory leak in the error handling path of function sg_io()
that is used during the processing of scsi ioctl. Memory already
allocated by rw_copy_check_uvector() needs to be freed correctly.
Detected by Coverity: CID 1128953.

Signed-off-by: default avatarChristian Engelmayer <cengelma@gmx.at>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 5837c80e
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