diff options
| author | Heiko Stuebner <heiko@sntech.de> | 2025-11-13 17:52:15 +0100 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2025-11-20 10:14:06 +0000 |
| commit | b4881070a02b017aea84592c424d5a980ed261c4 (patch) | |
| tree | 17363bdacbdbaea91798fcd30a3ad91c4a8e4410 /scripts/generate_rust_analyzer.py | |
| parent | 46bddb5fbe7e3cb73204a952dbd4687cf0974ef5 (diff) | |
mfd: qnap-mcu: Calculate the checksum on the actual number of bytes received
In the case of an error message, the number of received bytes can be
less than originally expected but still contain a valid message.
If the transfer itself ended in an error we would exit earlier already.
So calculate the checksum on the number of received bytes and not the
number of expected bytes.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20251113165218.449616-2-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions
