Return error if the input data is larger than expected

If the input data length exceeds the expected, return len_invalid too

Tested:
ipmitool raw 0x06 0x24 0x01 0x13 0x0 0x2 0xa 0x00 0xff

Will return error

Signed-off-by: Yu Ren <yux.ren@intel.com>
Change-Id: I12168f4aed51c499fd06067ca4475917b68e819e
1 file changed