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)
committerOhad Ben-Cohen <ohad@wizery.com>
Fri, 5 Apr 2013 05:47:57 +0000 (08:47 +0300)
commitcde42e076c1cdd69a1f955d66ff6596bad3d2105
tree255a172ba60311c8ea9501182d92cb8e2a90dcec
parent1cd425b660bd5b4f41b9175b0b7bf3828ce88144
remoteproc: fix error path of handle_vdev

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

Cc: stable@vger.kernel.org
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>
drivers/remoteproc/remoteproc_core.c