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

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

Merge "crypto: qcedev: Return valid error code"

parents b26a24c8 d781e4d7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Qualcomm Crypto Engine driver.
 *
 * Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2456,7 +2456,7 @@ static int _qce_sps_add_sg_data(struct qce_device *pce_dev,
	while (nbytes > 0) {
		if (NULL == sg_src) {
			pr_err("qce50.c: _qce_sps_add_sg_data, sg_src = NULL");
			break;
			return -ENOENT;
		}
		len = min(nbytes, sg_dma_len(sg_src));
		nbytes -= len;