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

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

Merge "msm: ipa: do not send zero length packet to IPA"

parents 3e53f155 31d3c855
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, 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
@@ -1269,6 +1269,11 @@ int ipa_tx_dp(enum ipa_client_type dst, struct sk_buff *skb,

	memset(desc, 0, 2 * sizeof(struct ipa_desc));

	if (skb->len == 0) {
		IPAERR("packet size is 0\n");
		return -EINVAL;
	}

	/*
	 * USB_CONS: PKT_INIT ep_idx = dst pipe
	 * Q6_CONS: PKT_INIT ep_idx = sender pipe