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

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

Merge "soc: qcom: glink_pkt: Check for NULL data before transmitting"

parents 8776be54 fc23ec10
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -675,6 +675,11 @@ ssize_t glink_pkt_write(struct file *file,

	devp = file->private_data;

	if (!count) {
		GLINK_PKT_ERR("%s: data count is zero\n", __func__);
		return -EINVAL;
	}

	if (!devp) {
		GLINK_PKT_ERR("%s on NULL glink_pkt_dev\n", __func__);
		return -EINVAL;