aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorAbin Joseph <abin.joseph@amd.com>2025-09-03 08:22:13 +0530
committerJakub Kicinski <kuba@kernel.org>2025-09-04 07:13:08 -0700
commit8bbceba7dc5090c00105e006ce28d1292cfda8dd (patch)
treeb487e73efcef3ac5ac90bda5687788fc6939ee46 /drivers/usb/host
parentMerge tag 'nf-25-09-04' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf (diff)
downloadwireguard-linux-8bbceba7dc5090c00105e006ce28d1292cfda8dd.tar.xz
wireguard-linux-8bbceba7dc5090c00105e006ce28d1292cfda8dd.zip
net: xilinx: axienet: Add error handling for RX metadata pointer retrieval
Add proper error checking for dmaengine_desc_get_metadata_ptr() which can return an error pointer and lead to potential crashes or undefined behaviour if the pointer retrieval fails. Properly handle the error by unmapping DMA buffer, freeing the skb and returning early to prevent further processing with invalid data. Fixes: 6a91b846af85 ("net: axienet: Introduce dmaengine support") Signed-off-by: Abin Joseph <abin.joseph@amd.com> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Link: https://patch.msgid.link/20250903025213.3120181-1-abin.joseph@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/usb/host')
0 files changed, 0 insertions, 0 deletions