diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-05-28 11:11:41 +0300 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2025-06-09 09:18:15 -0700 |
commit | 87b42c114cdda76c8ad3002f2096699ad5146cb3 (patch) | |
tree | 2bdb81518ff5342fd141e7526141e24bc709b414 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) |
cxl: fix return value in cxlctl_validate_set_features()
The cxlctl_validate_set_features() function is type bool. It's supposed
to return true for valid requests and false for invalid. However, this
error path returns ERR_PTR(-EINVAL) which is true when it was intended to
return false.
The incorrect return will result in kernel failing to prevent a
incorrect op_size passed in from userspace to be detected.
[ dj: Add user impact to commit log ]
Fixes: f76e0bbc8bc3 ("cxl: Update prototype of function get_support_feature_info()")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://patch.msgid.link/aDbFPSCujpJLY1if@stanley.mountain
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions