Skip to content
Snippets Groups Projects
Commit f9c4e7b0 authored by Chengguang Xu's avatar Chengguang Xu Committed by Yang Yingliang
Browse files

block: release bip in a right way in error path


stable inclusion
from linux-4.19.133
commit 1d269061bb3823c9e744397713f42e9fa49576eb

--------------------------------

[ Upstream commit 0b8eb629 ]

Release bip using kfree() in error path when that was allocated
by kmalloc().

Signed-off-by: default avatarChengguang Xu <cgxu519@mykernel.net>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent fd197555
No related branches found
No related tags found
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