Searched hist:"959 e375464912a32b9d971642d933ae71b9f0267" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_mbx.c | diff 959e375464912a32b9d971642d933ae71b9f0267 Wed Feb 23 10:26:20 CST 2022 Andy Shevchenko <andriy.shevchenko@linux.intel.com> 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: cf718eaa8f9b ("crypto: cavium/nitrox - Enabled Mailbox support") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|