commit | 1d269061bb3823c9e744397713f42e9fa49576eb | [log] [tgz] |
---|---|---|
author | Chengguang Xu <cgxu519@mykernel.net> | Wed Jun 24 18:21:39 2020 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Jul 16 08:17:23 2020 +0200 |
tree | de61aa93fdcfd0a1d8bc71ce6e8bcf83aa1d0305 | |
parent | cc1815b74b28f044075f724e09516c4169981958 [diff] |
block: release bip in a right way in error path [ Upstream commit 0b8eb629a700c0ef15a437758db8255f8444e76c ] Release bip using kfree() in error path when that was allocated by kmalloc(). Signed-off-by: Chengguang Xu <cgxu519@mykernel.net> Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>