summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorQasim Ijaz <qasdev00@gmail.com>2025-03-14 23:01:02 +0000
committerJoerg Roedel <jroedel@suse.de>2025-03-20 08:59:15 +0100
commitb8741496c058c6d65d09799081158d1593554638 (patch)
tree1da2ebaa1ea42d63e06bd70c88fc57e8ed012b35 /net/lapb/lapb_timer.c
parent3bc0102835f666d934addedbd37ff7f2f26c865d (diff)
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 <qasdev00@gmail.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Link: https://lore.kernel.org/r/20250314230102.11008-1-qasdev00@gmail.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions