diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2021-12-10 18:38:16 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-12-15 22:39:07 +0000 |
commit | e3ae755575e0646f9dd47400a1dfc6018e16e9a8 (patch) | |
tree | b02655b6722c8361e771a3989f812ec26742e222 /src/drivers/ipmi | |
parent | 856d6bc6d3d7c19be0e17c6fc6ad089868bf4b54 (diff) |
drivers/spi/spi-generic: fix edge case in spi_crop_chunk
In the case of deduct_cmd_len being set and the adjusted cmd_len >=
ctrlr_max, ctrlr_max wasn't being adjusted and still had the value of
ctrlr->max_xfer_size. Handle this edge case (which we should never run
into) by setting ctrlr_max to 0 and printing a warning to the console.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I9941b2947bb0a44dfae8ee69f509795dfb0cb241
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60121
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/drivers/ipmi')
0 files changed, 0 insertions, 0 deletions