arm: mvebu: Check that kwbimage offset and blocksize are valid
authorPali Rohár <pali@kernel.org>
Fri, 14 Jan 2022 13:31:37 +0000 (14:31 +0100)
committerStefan Roese <sr@denx.de>
Thu, 20 Jan 2022 10:35:29 +0000 (11:35 +0100)
commit66f874855cc6e750e979a9e08bb96d0da38d534f
treec1327109479a042c71f925013e7223f158c6234f
parent4364071362b5d2dd7949f0734e96ab9d18ce6322
arm: mvebu: Check that kwbimage offset and blocksize are valid

There are certain restrictions for kwbimage offset and blocksize.
Validate them.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/spl.c