summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorFoster Snowhill <forst@pen.gy>2025-01-26 02:54:06 +0300
committerPaolo Abeni <pabeni@redhat.com>2025-01-28 14:16:32 +0300
commit2a9a196429e98fcc64078366c2679bc40aba5466 (patch)
tree3dd4120166fecc8d733f92e99fb0e54945ec8aaf /scripts/gdb/linux/vmalloc.py
parent86586dcb75cb8fd062a518aca8ee667938b91efb (diff)
downloadlinux-2a9a196429e98fcc64078366c2679bc40aba5466.tar.xz
usbnet: ipheth: refactor NCM datagram loop
Introduce an rx_error label to reduce repetitions in the header signature checks. Store wDatagramIndex and wDatagramLength after endianness conversion to avoid repeated le16_to_cpu() calls. Rewrite the loop to return on a null trailing DPE, which is required by the CDC NCM spec. In case it is missing, fall through to rx_error. This change does not fix any particular issue. Its purpose is to simplify a subsequent commit that fixes a potential OoB read by limiting the maximum amount of processed DPEs. Cc: stable@vger.kernel.org # 6.5.x Signed-off-by: Foster Snowhill <forst@pen.gy> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions