diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-02-09 20:00:47 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-02-18 16:21:08 +1100 |
commit | fffe799b6cc980f967df2f3773dc53639dd68d7e (patch) | |
tree | 20ac863511be63d9298c68c50a05e949e980161d /crypto/xts.c | |
parent | 4ba31cdd88c9008777a48d3ac2b045dce5634389 (diff) |
crypto: qat - 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: b4b7e67c917f ("crypto: qat - Intel(R) QAT ucode part of fw loader")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/xts.c')
0 files changed, 0 insertions, 0 deletions