]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
misc: ti-st: Fix memory leak in the error path of probe()
authorAnton Vasilyev <vasilyev@ispras.ru>
Fri, 27 Jul 2018 15:45:36 +0000 (18:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2018 20:41:26 +0000 (22:41 +0200)
commitbaec9ce83ad583a9a353d32d7089e0a54ed22aeb
tree17a5b01b5bf07a67dc948f9c4050effe2264dcf2
parent7fef1a4f376aa06098c4a2145549d9758f5ca432
misc: ti-st: Fix memory leak in the error path of probe()

[ Upstream commit 81ae962d7f180c0092859440c82996cccb254976 ]

Free resources instead of direct return of the error code if kim_probe
fails.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ti-st/st_kim.c