diff options
author | Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com> | 2025-07-10 16:33:40 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-07-18 13:52:00 +0300 |
commit | 63fa7c4dc0ea965d0a17fdbf51e5b421f61000fe (patch) | |
tree | 9b11cb151bbdcfed2dc2b9690ecd2f883e3542cf /rust/helpers/task.c | |
parent | f0ae287c50455f7be0d8dd45a803d403c7aa4d2e (diff) | |
download | linux-63fa7c4dc0ea965d0a17fdbf51e5b421f61000fe.tar.xz |
crypto: qat - validate service in rate limiting sysfs api
The sysfs interface 'qat_rl/srv' currently allows all valid services,
even if a service is not configured for the device. This leads to a failure
when attempting to add the SLA using 'qat_rl/sla_op'.
Add a check using is_service_enabled() to ensure the requested service is
enabled. If not, return -EINVAL to prevent invalid configurations.
Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions