]> git.baikalelectronics.ru Git - kernel.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>
Thu, 2 Aug 2018 08:35:04 +0000 (10:35 +0200)
commit20cb85e8b3fb379e1124062ea8f64d6e185bda70
treead28b6d3f0b2ca4e966f4a9d2264026d86f925d6
parentec5203a9a3dcded906e7ad898f4d4126ab67902e
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