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

Commit ce059a4d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "crypto: msm: Fix null pointer dereference"

parents 2e2b0905 d6ccbf74
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2435,10 +2435,7 @@ static int _qce_sps_add_sg_data(struct qce_device *pce_dev,
	struct sps_iovec *iovec = sps_bam_pipe->iovec +
						sps_bam_pipe->iovec_count;

	if (!sg_src)
		return -ENOENT;

	while (nbytes > 0) {
	while (nbytes > 0 && sg_src) {
		len = min(nbytes, sg_dma_len(sg_src));
		nbytes -= len;
		addr = sg_dma_address(sg_src);