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

Commit 23a2d71f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gsi: Mask the read/write apis for dpl_ctrl node"

parents 8f45532e 1fc901db
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1263,6 +1263,9 @@ gsi_ctrl_dev_read(struct file *fp, char __user *buf, size_t count, loff_t *pos)
	unsigned long flags;
	int ret = 0;

	if (prot_id == IPA_USB_DIAG)
		return -EINVAL;

	pr_debug("%s: Enter %zu", __func__, count);

	mutex_lock(&inst_cur->gsi_lock);
@@ -1349,6 +1352,9 @@ static ssize_t gsi_ctrl_dev_write(struct file *fp, const char __user *buf,
	struct gsi_inst_status *inst_cur = &inst_status[prot_id];
	struct f_gsi *gsi;

	if (prot_id == IPA_USB_DIAG)
		return -EINVAL;

	pr_debug("Enter %zu", count);

	mutex_lock(&inst_cur->gsi_lock);