aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2021-11-07 22:57:00 +0100
committerWolfram Sang <wsa@kernel.org>2021-11-29 09:53:56 +0100
commiteffa453168a7eeb8a562ff4edc1dbf9067360a61 (patch)
treee74a44a61e247c7ce5d993b6757db5936b4f8531 /scripts/gdb/linux/utils.py
parentbd2fdedbf2bac27f4a2ac16b84ab9b9e5f67006c (diff)
i2c: i801: Don't silently correct invalid transfer size
If an invalid block size is provided, reject it instead of silently changing it to a supported value. Especially critical I see the case of a write transfer with block length 0. In this case we have no guarantee that the byte we would write is valid. When silently reducing a read to 32 bytes then we don't return an error and the caller may falsely assume that we returned the full requested data. If this change should break any (broken) caller, then I think we should fix the caller. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions