Unverified Commit 92381e91 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14369 crypto: qat/qat_420xx - fix off by one in uof_get_name()

parents f793f80b 6f030723
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -375,7 +375,7 @@ static const char *uof_get_name(struct adf_accel_dev *accel_dev, u32 obj_num,
	else
		id = -EINVAL;

	if (id < 0 || id > num_objs)
	if (id < 0 || id >= num_objs)
		return NULL;

	return fw_objs[id];