diff options
| author | Alex Elder <[email protected]> | 2021-06-12 14:37:32 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-12 20:18:48 +0000 |
| commit | fab01a6f3a61748b9c2e038c84498c6624b06236 (patch) | |
| tree | 39f7eaa450b74b11c6667a1a694af737247f027b /drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c | |
| parent | net: qualcomm: rmnet: show that an intermediate sum is zero (diff) | |
| download | kernel-fab01a6f3a61748b9c2e038c84498c6624b06236.tar.gz kernel-fab01a6f3a61748b9c2e038c84498c6624b06236.zip | |
net: qualcomm: rmnet: return earlier for bad checksum
In rmnet_map_ipv4_dl_csum_trailer(), if the sum of the trailer
checksum and the pseudo checksum is non-zero, checksum validation
has failed. We can return an error as soon as we know that.
We can do the same thing in rmnet_map_ipv6_dl_csum_trailer().
Add some comments that explain where we're headed.
Signed-off-by: Alex Elder <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c')
0 files changed, 0 insertions, 0 deletions
