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

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

Merge "slimbus: Check the input value for valid use-case" into msm-4.8

parents fa3a5369 f005ce77
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1170,9 +1170,9 @@ int slim_bulk_msg_write(struct slim_device *sb, u8 mt, u8 mc,
			struct slim_val_inf msgs[], int n,
			int (*comp_cb)(void *ctx, int err), void *ctx)
{
	int i, ret;
	int i, ret = 0;

	if (!sb || !sb->ctrl || !msgs)
	if (!sb || !sb->ctrl || !msgs || n <= 0)
		return -EINVAL;
	if (!sb->ctrl->xfer_bulk_wr) {
		pr_warn("controller does not support bulk WR, serializing");