summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2020-11-10 22:46:14 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-18 18:26:27 +0100
commitf44b8662a581d1e09b0af47fba1eac33c1a655ab (patch)
treef47acc8c0db62ee74bb20d624d7343f7c75b88ce /kernel
parent02317044a80418b4bf4513fa710e030c655a2a6f (diff)
cosa: Add missing kfree in error path of cosa_write
[ Upstream commit 52755b66ddcef2e897778fac5656df18817b59ab ] If memory allocation for 'kbuf' succeed, cosa_write() doesn't have a corresponding kfree() in exception handling. Thus add kfree() for this function implementation. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wang Hai <wanghai38@huawei.com> Acked-by: Jan "Yenya" Kasprzak <kas@fi.muni.cz> Link: https://lore.kernel.org/r/20201110144614.43194-1-wanghai38@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions