diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-02-23 19:26:20 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-03-03 01:49:21 +0300 |
commit | 959e375464912a32b9d971642d933ae71b9f0267 (patch) | |
tree | 16fc2e094150d43001ae21cc91a18a515b45e48c /block | |
parent | 647d41d3952d726d4ae49e853a9eff68ebad3b3f (diff) | |
download | linux-959e375464912a32b9d971642d933ae71b9f0267.tar.xz |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions