aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorNicolin Chen <[email protected]>2025-04-14 19:16:35 +0000
committerJoerg Roedel <[email protected]>2025-04-17 14:44:27 +0000
commit30a3f2f3e4bd6335b727c83c08a982d969752bc1 (patch)
tree609979e66f295df2610a75a735458a90bdb0027d /scripts/gcc-plugins/cyc_complexity_plugin.c
parentiommu/amd: Fix potential buffer overflow in parse_ivrs_acpihid (diff)
downloadkernel-30a3f2f3e4bd6335b727c83c08a982d969752bc1.tar.gz
kernel-30a3f2f3e4bd6335b727c83c08a982d969752bc1.zip
iommu: Fix two issues in iommu_copy_struct_from_user()
In the review for iommu_copy_struct_to_user() helper, Matt pointed out that a NULL pointer should be rejected prior to dereferencing it: https://lore.kernel.org/all/[email protected] And Alok pointed out a typo at the same time: https://lore.kernel.org/all/[email protected] Since both issues were copied from iommu_copy_struct_from_user(), fix them first in the current header. Fixes: e9d36c07bb78 ("iommu: Add iommu_copy_struct_from_user helper") Cc: [email protected] Signed-off-by: Nicolin Chen <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Acked-by: Alok Tiwari <[email protected]> Reviewed-by: Matthew R. Ochs <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions