Commit 81b312f1 authored by Tadeusz Struk's avatar Tadeusz Struk Committed by Herbert Xu

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 50eca256
...@@ -251,6 +251,6 @@ struct adf_accel_dev { ...@@ -251,6 +251,6 @@ struct adf_accel_dev {
} vf; } vf;
}; };
bool is_vf; bool is_vf;
uint8_t accel_id; u32 accel_id;
} __packed; } __packed;
#endif #endif
...@@ -80,8 +80,8 @@ enum adf_device_type { ...@@ -80,8 +80,8 @@ enum adf_device_type {
struct adf_dev_status_info { struct adf_dev_status_info {
enum adf_device_type type; enum adf_device_type type;
uint8_t accel_id; u32 accel_id;
uint8_t instance_id; u32 instance_id;
uint8_t num_ae; uint8_t num_ae;
uint8_t num_accel; uint8_t num_accel;
uint8_t num_logical_accel; uint8_t num_logical_accel;
......
Markdown is supported
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