[PATCH v1 1/1] perf/smmuv3: Don't cast parameter in bit operations
Will Deacon
will at kernel.org
Tue Feb 15 15:18:21 PST 2022
On Wed, 9 Feb 2022 20:47:58 +0200, Andy Shevchenko wrote:
> 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.
>
> [...]
Applied to will (for-joerg/arm-smmu/updates), thanks!
[1/1] perf/smmuv3: Don't cast parameter in bit operations
https://git.kernel.org/will/c/8ddf4eff71e1
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list