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

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

Merge "USB: gadget: mbim: Avoid copying uninitialized data to userspace"

parents 36b09830 b8199c2b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2030,7 +2030,7 @@ static long mbim_ioctl(struct file *fp, unsigned cmd, unsigned long arg)
		default:
			ret = -ENODEV;
			pr_err("unknown transport\n");
			break;
			goto fail;
		}

		ret = copy_to_user((void __user *)arg, &info,
@@ -2046,6 +2046,7 @@ static long mbim_ioctl(struct file *fp, unsigned cmd, unsigned long arg)
		ret = -EINVAL;
	}

fail:
	mbim_unlock(&mbim->ioctl_excl);

	return ret;