OSDN Git Service

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>
Thu, 2 Aug 2018 08:35:04 +0000 (10:35 +0200)
commit81ae962d7f180c0092859440c82996cccb254976
treead28b6d3f0b2ca4e966f4a9d2264026d86f925d6
parentc8c64b39cf721404d47e7069d7f6d00d03b7f6b4
misc: ti-st: Fix memory leak in the error path of probe()

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>
drivers/misc/ti-st/st_kim.c