Skip to content
Commit 959e3754 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Herbert Xu
Browse files

crypto: cavium/nitrox - 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 the location
of the parameter is changed.

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.

Fixes: cf718eaa ("crypto: cavium/nitrox - Enabled Mailbox support")
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 647d41d3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment