« Previous | Next » 

Revision 17df768c

ID17df768c1e4580f03301d18ea938d3557d441911

Added by Benjamin Herrenschmidt over 12 years ago

load_image_targphys() should enforce the max size

load_image_targphys() gets passed a max size for the file, but doesn't
enforce it at all. Add a check and return -1 (error) if the file is
too big, without loading it. Fix the bracing style in the function
while we're at it.

Signed-off-by: Benjamin Herrenschmidt <>
Signed-off-by: David Gibson <>
Signed-off-by: Alexander Graf <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences