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

Commit 939664b6 authored by Scott Bauer's avatar Scott Bauer Committed by Zhen Kong
Browse files

crypto: qce50: Init sg don't just add pages to it



Make change to init sg in setup_dummy_req, which was not
initialized and could prevent the kernel from booting
up with debug flags enabled.

Change-Id: Ida47dac6bef492d248e9429f36b06ad920bdfeba
Signed-off-by: default avatarScott Bauer <sbauer@plzdonthack.me>
Git-Commit: fd82bd4f9bbf6aa6e0cf55f5263ee0d851466c7a
Git-Repo: https://github.com/CopperheadOS/kernel_google_wahoo.git


Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent ccf21f85
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5929,8 +5929,7 @@ static int setup_dummy_req(struct qce_device *pce_dev)
	int len = DUMMY_REQ_DATA_LEN;

	memcpy(pce_dev->dummyreq_in_buf, input, len);
	sg_set_buf(&pce_dev->dummyreq.sg, pce_dev->dummyreq_in_buf, len);
	sg_mark_end(&pce_dev->dummyreq.sg);
	sg_init_one(&pce_dev->dummyreq.sg, pce_dev->dummyreq_in_buf, len);

	pce_dev->dummyreq.sreq.alg = QCE_HASH_SHA1;
	pce_dev->dummyreq.sreq.qce_cb = qce_dummy_complete;