arm: Increase zImage length after getting the tag

Increase the size of the zImage after seeking for the tag to avoid
reading past the end of the supplied buffer should there be not tag
in the zImage.

Fixes: f57f0bf8975d24fe1e7c4936fdfb5c3b123ab75f
Signed-off-by: Łukasz Stelmach <>
Cc: Russell King <>
Signed-off-by: Simon Horman <>
1 file changed