remoteproc: look for truncated firmware images
authorOhad Ben-Cohen <ohad@wizery.com>
Tue, 13 Dec 2011 13:23:26 +0000 (15:23 +0200)
committerOhad Ben-Cohen <ohad@wizery.com>
Wed, 8 Feb 2012 20:54:37 +0000 (22:54 +0200)
commit9bc91231178d8ca3dd07f90493941bdb17eef86d
tree0b592cc824277ee6b8d3e131e9a83246abaa69a3
parent63d667bf53c444082b053d95ddc4d54f3dbe8f52
remoteproc: look for truncated firmware images

Make sure firmware isn't truncated before accessing its data.

Reported-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c