lkml.org 
[lkml]   [2019]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCHv2 4/4] tty: n_gsm: add ioctl to map serial device to mux'ed tty
From
Date
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,
> 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);

I am not sure, but do you need the local variable at all?

> default:
> return n_tty_ioctl_helper(tty, file, cmd, arg);
> }


--
js
suse labs

\
 
 \ /
  Last update: 2019-07-09 08:50    [W:0.077 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site