Message ID | 20210827084310.GA21801@gondor.apana.org.au |
---|---|
State | Accepted |
Commit | cbbb5f07ab737f868f90d429255d5d644280f6a9 |
Headers | show |
Series | crypto: hisilicon - Fix sscanf format signedness | expand |
diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 55be00374468..2e9bbec7d1f5 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -4191,7 +4191,7 @@ static ssize_t qm_qos_value_init(const char *buf, unsigned long *val) return -EINVAL; } - ret = sscanf(buf, "%ld", val); + ret = sscanf(buf, "%lu", val); if (ret != QM_QOS_VAL_NUM) return -EINVAL;