s390/test_unwind: fix possible memleak in test_unwind()
authorWang Hai <wanghai38@huawei.com>
Thu, 30 Jul 2020 06:36:02 +0000 (14:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:07:41 +0000 (13:07 +0200)
commit07a4dc1435820ef9fcbb9767a0239336d24ca9bf
tree65d23ef264bfc0ee958d141e66f9d3188bb56c27
parent64efb94072ae2e99da7886930c1321cf8d537f0f
s390/test_unwind: fix possible memleak in test_unwind()

[ Upstream commit 75d3e7f4769d276a056efa1cc7f08de571fc9b4b ]

test_unwind() misses to call kfree(bt) in an error path.
Add the missed function call to fix it.

Fixes: 0610154650f1 ("s390/test_unwind: print verbose unwinding results")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/lib/test_unwind.c