]> git.baikalelectronics.ru Git - kernel.git/commit
bsg: free the request before return error code
authorPan Bian <bianpan2016@163.com>
Tue, 19 Jan 2021 12:33:11 +0000 (04:33 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 04:36:41 +0000 (21:36 -0700)
commita952177afd3852f29d85c73ae6563b147af4ec67
treec79cbef50fe92f5c1976827bc174dd4dceaecc8a
parentb2555fddc31cc5fa0a72e2c3dd0a6e9ce9b89969
bsg: free the request before return error code

Free the request rq before returning error code.

Fixes: e23b90c14fa3 ("scsi: bsg-lib: handle bidi requests without block layer help")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bsg.c