remoteproc: fix off-by-one bug in __rproc_free_vrings
authorSubramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Sun, 13 May 2012 13:28:02 +0000 (16:28 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Sun, 13 May 2012 20:15:42 +0000 (23:15 +0300)
commit6fd98c124c66b0b0001bc4217392d891b1ad4a02
tree84dce535a4b106c18bc89f34d0fb146ad84cc9c8
parentd48b97b403d23f6df0b990cee652bdf9a52337a3
remoteproc: fix off-by-one bug in __rproc_free_vrings

Fix a nasty off-by-one bug in __rproc_free_vrings which
resulted in a memory leak and (for some platforms) failures
to reload the remote processor.

Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
[ohad@wizery.com: reword commit log, stick with the for loop]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c