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

Commit fa3a5369 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "slimbus: slim-msm-ngd: Fix a memory leak in error handling" into msm-4.8

parents ea8d658f 26182ced
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1707,8 +1707,10 @@ static int ngd_slim_probe(struct platform_device *pdev)
	}
	dev->wr_comp = kzalloc(sizeof(struct completion *) * MSM_TX_BUFS,
				GFP_KERNEL);
	if (!dev->wr_comp)
		return -ENOMEM;
	if (!dev->wr_comp) {
		ret = -ENOMEM;
		goto err_nobulk;
	}

	/* typical txn numbers and size used in bulk operation */
	dev->bulk.buf_sz = SLIM_MAX_TXNS * 8;