crypto: qat - uint8_t is not large enough for accel_id
authorTadeusz Struk <tadeusz.struk@intel.com>
Thu, 10 Dec 2015 22:23:03 +0000 (14:23 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 14 Dec 2015 13:03:38 +0000 (21:03 +0800)
commit81b312f11dfd7466462d94667f0a8df14a412d2a
tree7ac1d180e81317b7a235c3444f122ad2cf2bf6cb
parent50eca2561beb0b7d3d43287b9e7cf8a39301c346
crypto: qat - uint8_t is not large enough for accel_id

accel_id has to be large enough to hold ADF_MAX_DEVICES + 1
(which is > 1025) so uint8_t is too small.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_accel_devices.h
drivers/crypto/qat/qat_common/adf_cfg_common.h