diff options
author | Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com> | 2025-07-10 14:33:40 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-07-18 20:52:00 +1000 |
commit | 63fa7c4dc0ea965d0a17fdbf51e5b421f61000fe (patch) | |
tree | 9b11cb151bbdcfed2dc2b9690ecd2f883e3542cf /scripts/gdb/linux/pgtable.py | |
parent | f0ae287c50455f7be0d8dd45a803d403c7aa4d2e (diff) |
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 'scripts/gdb/linux/pgtable.py')
0 files changed, 0 insertions, 0 deletions