projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cd425b
)
remoteproc: fix error path of handle_vdev
author
Sjur Brændeland
<
[email protected]
>
Thu, 21 Feb 2013 17:15:32 +0000
(18:15 +0100)
committer
Ohad Ben-Cohen
<
[email protected]
>
Fri, 5 Apr 2013 05:47:57 +0000
(08:47 +0300)
Remove the vdev entry from the list before freeing it,
otherwise rproc->vdevs will explode.
Cc:
[email protected]
Signed-off-by: Sjur Brændeland <
[email protected]
>
Acked-by: Ido Yariv <
[email protected]
>
[edit subject, minor commit log edit, cc stable]
Signed-off-by: Ohad Ben-Cohen <
[email protected]
>
drivers/remoteproc/remoteproc_core.c
patch
|
blob
|
history
diff --git
a/drivers/remoteproc/remoteproc_core.c
b/drivers/remoteproc/remoteproc_core.c
index fb0fb342bf968f9e70b7af8b71f946ef34f72565..8edb4aed5d368e551e968e9c841cfd9edb221b7a 100644
(file)
--- a/
drivers/remoteproc/remoteproc_core.c
+++ b/
drivers/remoteproc/remoteproc_core.c
@@
-366,10
+366,12
@@
static int rproc_handle_vdev(struct rproc *rproc, struct fw_rsc_vdev *rsc,
/* it is now safe to add the virtio device */
ret = rproc_add_virtio_dev(rvdev, rsc->id);
if (ret)
- goto
fre
e_rvdev;
+ goto
remov
e_rvdev;
return 0;
+remove_rvdev:
+ list_del(&rvdev->node);
free_rvdev:
kfree(rvdev);
return ret;