On 09. 07. 19, 8:46, Martin HundebÃll wrote:
@@ -2623,6 +2624,9 @@ static int gsmld_ioctl(struct tty_struct *tty, struct file *file,I am not sure, but do you need the local variable at all?
if (copy_from_user(&c, (void *)arg, sizeof(c)))
return -EFAULT;
return gsm_config(gsm, &c);
+ case GSMIOC_GETBASE:
+ base = mux_num_to_base(gsm);
+ return put_user(base, (int __user *)arg);