Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e796a1f6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qcedev: msm: Remove gating of zero length packets for authentication"

parents 7d38d2f6 528bd307
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -926,11 +926,6 @@ static int qcedev_sha_final(struct qcedev_async_req *qcedev_areq,
		return -EINVAL;
	}

	if (handle->sha_ctxt.trailing_buf_len == 0) {
		pr_err("%s Incorrect trailng buffer %d\n", __func__,
					handle->sha_ctxt.trailing_buf_len);
		return -EINVAL;
	}
	handle->sha_ctxt.last_blk = 1;

	total = handle->sha_ctxt.trailing_buf_len;
@@ -1700,10 +1695,9 @@ static int qcedev_check_sha_params(struct qcedev_sha_op_req *req,
		pr_err("%s: CMAC not supported\n", __func__);
		goto sha_error;
	}
	if ((req->entries == 0) || (req->data_len == 0) ||
			(req->entries > QCEDEV_MAX_BUFFERS)) {
		pr_err("%s: Invalid data length (%d)/ num entries (%d)\n",
				__func__, req->data_len, req->entries);
	if ((!req->entries) || (req->entries > QCEDEV_MAX_BUFFERS)) {
		pr_err("%s: Invalid num entries (%d)\n",
						__func__, req->entries);
		goto sha_error;
	}