aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorQasim Ijaz <[email protected]>2025-03-14 23:01:02 +0000
committerJoerg Roedel <[email protected]>2025-03-20 07:59:15 +0000
commitb8741496c058c6d65d09799081158d1593554638 (patch)
tree1da2ebaa1ea42d63e06bd70c88fc57e8ed012b35 /net/unix/unix_bpf.c
parentiommu: apple-dart: Allow mismatched bypass support (diff)
downloadkernel-b8741496c058c6d65d09799081158d1593554638.tar.gz
kernel-b8741496c058c6d65d09799081158d1593554638.zip
iommu: apple-dart: fix potential null pointer deref
If kzalloc() fails, accessing cfg->supports_bypass causes a null pointer dereference. Fix by checking for NULL immediately after allocation and returning -ENOMEM. Fixes: 3bc0102835f6 ("iommu: apple-dart: Allow mismatched bypass support") Signed-off-by: Qasim Ijaz <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions