staging: kpc2000: clean up after probe failure.
authorJeremy Sowden <jeremy@azazel.net>
Wed, 15 May 2019 11:14:37 +0000 (12:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2019 05:40:41 +0000 (07:40 +0200)
commit70eb40836ca4a465adc7f986454fe69a2474e14e
treea2e12c18563b70ef4bbe907a770dbb101864e727
parentabb611d2c21c0a4fa8eab35dc936c80d9a07acd8
staging: kpc2000: clean up after probe failure.

On error, kp2000_probe_cores just returned an error without freeing
resources which had previously been allocated.  Added the missing
clean-up code.

Updated TODO.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/TODO
drivers/staging/kpc2000/kpc2000/cell_probe.c