commit | 17a05cca99d952f5b4766fa48a2703548966636a | [log] [tgz] |
---|---|---|
author | Christian Engelmayer <cengelma@gmx.at> | Sun Jan 19 02:08:49 2014 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Jan 21 20:36:17 2014 -0800 |
tree | 3ecdbd133cbeef9f4bc3fb0a8f1eea4f8e1defa5 | |
parent | 5837c80e870bc3b12ac6a98cdc9ce7a9522a8fb6 [diff] |
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: Christian Engelmayer <cengelma@gmx.at> Signed-off-by: Jens Axboe <axboe@kernel.dk>