]> git.karo-electronics.de Git - karo-tx-linux.git/commit
remoteproc: fix error path of handle_vdev
authorSjur Brændeland <sjur.brandeland@stericsson.com>
Thu, 21 Feb 2013 17:15:32 +0000 (18:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Apr 2013 16:52:08 +0000 (09:52 -0700)
commitccc4026c520728c39ad36cfa8ca960be9aa560fa
tree5a6eb6ca2edf93232b33879d8df64fc53bc4e49e
parentcb70adc51e456ea0bafd519e99d46cfc7f1b5c24
remoteproc: fix error path of handle_vdev

commit cde42e076c1cdd69a1f955d66ff6596bad3d2105 upstream.

Remove the vdev entry from the list before freeing it,
otherwise rproc->vdevs will explode.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Acked-by: Ido Yariv <ido@wizery.com>
[edit subject, minor commit log edit, cc stable]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/remoteproc/remoteproc_core.c