diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-02-09 19:47:58 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-02-15 17:51:26 +0100 |
commit | 8ddf4eff71e12e4295b54ac8b02439ad22271fd2 (patch) | |
tree | 796e3ccd8c57fcfe6af7298f135031743832c1e3 /scripts/ksymoops | |
parent | iommu/arm-smmu-v3: fix event handling soft lockup (diff) | |
download | linux-8ddf4eff71e12e4295b54ac8b02439ad22271fd2.tar.xz linux-8ddf4eff71e12e4295b54ac8b02439ad22271fd2.zip |
perf/smmuv3: Don't cast parameter in bit operations
While in this particular case it would not be a (critical) issue,
the pattern itself is bad and error prone in case somebody blindly
copies to their code.
Don't cast parameter to unsigned long pointer in the bit operations.
Instead copy to a local variable on stack of a proper type and use.
Note, new compilers might warn on this line for potential outbound access.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20220209184758.56578-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/ksymoops')
0 files changed, 0 insertions, 0 deletions