Commit cc4b955e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix up dumb int_user_arg variable name as pointed out by Al Viro.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 0060df11
...@@ -2008,7 +2008,7 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign ...@@ -2008,7 +2008,7 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign
{ {
struct usb_mixerdev *ms = (struct usb_mixerdev *)file->private_data; struct usb_mixerdev *ms = (struct usb_mixerdev *)file->private_data;
int i, j, val; int i, j, val;
int __user *int_user_arg = (int __user *)arg; int __user *user_arg = (int __user *)arg;
if (!ms->state->usbdev) if (!ms->state->usbdev)
return -ENODEV; return -ENODEV;
...@@ -2035,7 +2035,7 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign ...@@ -2035,7 +2035,7 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign
return 0; return 0;
} }
if (cmd == OSS_GETVERSION) if (cmd == OSS_GETVERSION)
return put_user(SOUND_VERSION, int_user_arg); return put_user(SOUND_VERSION, user_arg);
if (_IOC_TYPE(cmd) != 'M' || _IOC_SIZE(cmd) != sizeof(int)) if (_IOC_TYPE(cmd) != 'M' || _IOC_SIZE(cmd) != sizeof(int))
return -EINVAL; return -EINVAL;
if (_IOC_DIR(cmd) == _IOC_READ) { if (_IOC_DIR(cmd) == _IOC_READ) {
...@@ -2044,27 +2044,27 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign ...@@ -2044,27 +2044,27 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign
val = get_rec_src(ms); val = get_rec_src(ms);
if (val < 0) if (val < 0)
return val; return val;
return put_user(val, int_user_arg); return put_user(val, user_arg);
case SOUND_MIXER_DEVMASK: /* Arg contains a bit for each supported device */ case SOUND_MIXER_DEVMASK: /* Arg contains a bit for each supported device */
for (val = i = 0; i < ms->numch; i++) for (val = i = 0; i < ms->numch; i++)
val |= 1 << ms->ch[i].osschannel; val |= 1 << ms->ch[i].osschannel;
return put_user(val, int_user_arg); return put_user(val, user_arg);
case SOUND_MIXER_RECMASK: /* Arg contains a bit for each supported recording source */ case SOUND_MIXER_RECMASK: /* Arg contains a bit for each supported recording source */
for (val = i = 0; i < ms->numch; i++) for (val = i = 0; i < ms->numch; i++)
if (ms->ch[i].slctunitid) if (ms->ch[i].slctunitid)
val |= 1 << ms->ch[i].osschannel; val |= 1 << ms->ch[i].osschannel;
return put_user(val, int_user_arg); return put_user(val, user_arg);
case SOUND_MIXER_STEREODEVS: /* Mixer channels supporting stereo */ case SOUND_MIXER_STEREODEVS: /* Mixer channels supporting stereo */
for (val = i = 0; i < ms->numch; i++) for (val = i = 0; i < ms->numch; i++)
if (ms->ch[i].flags & (MIXFLG_STEREOIN | MIXFLG_STEREOOUT)) if (ms->ch[i].flags & (MIXFLG_STEREOIN | MIXFLG_STEREOOUT))
val |= 1 << ms->ch[i].osschannel; val |= 1 << ms->ch[i].osschannel;
return put_user(val, int_user_arg); return put_user(val, user_arg);
case SOUND_MIXER_CAPS: case SOUND_MIXER_CAPS:
return put_user(SOUND_CAP_EXCL_INPUT, int_user_arg); return put_user(SOUND_CAP_EXCL_INPUT, user_arg);
default: default:
i = _IOC_NR(cmd); i = _IOC_NR(cmd);
...@@ -2072,7 +2072,7 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign ...@@ -2072,7 +2072,7 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign
return -EINVAL; return -EINVAL;
for (j = 0; j < ms->numch; j++) { for (j = 0; j < ms->numch; j++) {
if (ms->ch[j].osschannel == i) { if (ms->ch[j].osschannel == i) {
return put_user(ms->ch[j].value, int_user_arg); return put_user(ms->ch[j].value, user_arg);
} }
} }
return -EINVAL; return -EINVAL;
...@@ -2083,7 +2083,7 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign ...@@ -2083,7 +2083,7 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign
ms->modcnt++; ms->modcnt++;
switch (_IOC_NR(cmd)) { switch (_IOC_NR(cmd)) {
case SOUND_MIXER_RECSRC: /* Arg contains a bit for each recording source */ case SOUND_MIXER_RECSRC: /* Arg contains a bit for each recording source */
if (get_user(val, int_user_arg)) if (get_user(val, user_arg))
return -EFAULT; return -EFAULT;
return set_rec_src(ms, val); return set_rec_src(ms, val);
...@@ -2094,11 +2094,11 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign ...@@ -2094,11 +2094,11 @@ static int usb_audio_ioctl_mixdev(struct inode *inode, struct file *file, unsign
for (j = 0; j < ms->numch && ms->ch[j].osschannel != i; j++); for (j = 0; j < ms->numch && ms->ch[j].osschannel != i; j++);
if (j >= ms->numch) if (j >= ms->numch)
return -EINVAL; return -EINVAL;
if (get_user(val, int_user_arg)) if (get_user(val, user_arg))
return -EFAULT; return -EFAULT;
if (wrmixer(ms, j, val)) if (wrmixer(ms, j, val))
return -EIO; return -EIO;
return put_user(ms->ch[j].value, int_user_arg); return put_user(ms->ch[j].value, user_arg);
} }
} }
...@@ -2371,7 +2371,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2371,7 +2371,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
{ {
struct usb_audiodev *as = (struct usb_audiodev *)file->private_data; struct usb_audiodev *as = (struct usb_audiodev *)file->private_data;
struct usb_audio_state *s = as->state; struct usb_audio_state *s = as->state;
int __user *int_user_arg = (int __user *)arg; int __user *user_arg = (int __user *)arg;
unsigned long flags; unsigned long flags;
audio_buf_info abinfo; audio_buf_info abinfo;
count_info cinfo; count_info cinfo;
...@@ -2389,7 +2389,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2389,7 +2389,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
#endif #endif
switch (cmd) { switch (cmd) {
case OSS_GETVERSION: case OSS_GETVERSION:
return put_user(SOUND_VERSION, int_user_arg); return put_user(SOUND_VERSION, user_arg);
case SNDCTL_DSP_SYNC: case SNDCTL_DSP_SYNC:
if (file->f_mode & FMODE_WRITE) if (file->f_mode & FMODE_WRITE)
...@@ -2401,7 +2401,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2401,7 +2401,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
case SNDCTL_DSP_GETCAPS: case SNDCTL_DSP_GETCAPS:
return put_user(DSP_CAP_DUPLEX | DSP_CAP_REALTIME | DSP_CAP_TRIGGER | return put_user(DSP_CAP_DUPLEX | DSP_CAP_REALTIME | DSP_CAP_TRIGGER |
DSP_CAP_MMAP | DSP_CAP_BATCH, int_user_arg); DSP_CAP_MMAP | DSP_CAP_BATCH, user_arg);
case SNDCTL_DSP_RESET: case SNDCTL_DSP_RESET:
if (file->f_mode & FMODE_WRITE) { if (file->f_mode & FMODE_WRITE) {
...@@ -2415,7 +2415,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2415,7 +2415,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
return 0; return 0;
case SNDCTL_DSP_SPEED: case SNDCTL_DSP_SPEED:
if (get_user(val, int_user_arg)) if (get_user(val, user_arg))
return -EFAULT; return -EFAULT;
if (val >= 0) { if (val >= 0) {
if (val < 4000) if (val < 4000)
...@@ -2427,10 +2427,10 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2427,10 +2427,10 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
} }
return put_user((file->f_mode & FMODE_READ) ? return put_user((file->f_mode & FMODE_READ) ?
as->usbin.dma.srate : as->usbout.dma.srate, as->usbin.dma.srate : as->usbout.dma.srate,
int_user_arg); user_arg);
case SNDCTL_DSP_STEREO: case SNDCTL_DSP_STEREO:
if (get_user(val, int_user_arg)) if (get_user(val, user_arg))
return -EFAULT; return -EFAULT;
val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format; val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format;
if (val) if (val)
...@@ -2442,7 +2442,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2442,7 +2442,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
return 0; return 0;
case SNDCTL_DSP_CHANNELS: case SNDCTL_DSP_CHANNELS:
if (get_user(val, int_user_arg)) if (get_user(val, user_arg))
return -EFAULT; return -EFAULT;
if (val != 0) { if (val != 0) {
val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format; val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format;
...@@ -2454,14 +2454,14 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2454,14 +2454,14 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
return -EIO; return -EIO;
} }
val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format; val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format;
return put_user(AFMT_ISSTEREO(val2) ? 2 : 1, int_user_arg); return put_user(AFMT_ISSTEREO(val2) ? 2 : 1, user_arg);
case SNDCTL_DSP_GETFMTS: /* Returns a mask */ case SNDCTL_DSP_GETFMTS: /* Returns a mask */
return put_user(AFMT_U8 | AFMT_U16_LE | AFMT_U16_BE | return put_user(AFMT_U8 | AFMT_U16_LE | AFMT_U16_BE |
AFMT_S8 | AFMT_S16_LE | AFMT_S16_BE, int_user_arg); AFMT_S8 | AFMT_S16_LE | AFMT_S16_BE, user_arg);
case SNDCTL_DSP_SETFMT: /* Selects ONE fmt*/ case SNDCTL_DSP_SETFMT: /* Selects ONE fmt*/
if (get_user(val, int_user_arg)) if (get_user(val, user_arg))
return -EFAULT; return -EFAULT;
if (val != AFMT_QUERY) { if (val != AFMT_QUERY) {
if (hweight32(val) != 1) if (hweight32(val) != 1)
...@@ -2475,7 +2475,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2475,7 +2475,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
return -EIO; return -EIO;
} }
val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format; val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format;
return put_user(val2 & ~AFMT_STEREO, int_user_arg); return put_user(val2 & ~AFMT_STEREO, user_arg);
case SNDCTL_DSP_POST: case SNDCTL_DSP_POST:
return 0; return 0;
...@@ -2486,10 +2486,10 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2486,10 +2486,10 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
val |= PCM_ENABLE_INPUT; val |= PCM_ENABLE_INPUT;
if (file->f_mode & FMODE_WRITE && as->usbout.flags & FLG_RUNNING) if (file->f_mode & FMODE_WRITE && as->usbout.flags & FLG_RUNNING)
val |= PCM_ENABLE_OUTPUT; val |= PCM_ENABLE_OUTPUT;
return put_user(val, int_user_arg); return put_user(val, user_arg);
case SNDCTL_DSP_SETTRIGGER: case SNDCTL_DSP_SETTRIGGER:
if (get_user(val, int_user_arg)) if (get_user(val, user_arg))
return -EFAULT; return -EFAULT;
if (file->f_mode & FMODE_READ) { if (file->f_mode & FMODE_READ) {
if (val & PCM_ENABLE_INPUT) { if (val & PCM_ENABLE_INPUT) {
...@@ -2547,7 +2547,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2547,7 +2547,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
spin_lock_irqsave(&as->lock, flags); spin_lock_irqsave(&as->lock, flags);
val = as->usbout.dma.count; val = as->usbout.dma.count;
spin_unlock_irqrestore(&as->lock, flags); spin_unlock_irqrestore(&as->lock, flags);
return put_user(val, int_user_arg); return put_user(val, user_arg);
case SNDCTL_DSP_GETIPTR: case SNDCTL_DSP_GETIPTR:
if (!(file->f_mode & FMODE_READ)) if (!(file->f_mode & FMODE_READ))
...@@ -2581,14 +2581,14 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2581,14 +2581,14 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
if (file->f_mode & FMODE_WRITE) { if (file->f_mode & FMODE_WRITE) {
if ((val = prog_dmabuf_out(as))) if ((val = prog_dmabuf_out(as)))
return val; return val;
return put_user(as->usbout.dma.fragsize, int_user_arg); return put_user(as->usbout.dma.fragsize, user_arg);
} }
if ((val = prog_dmabuf_in(as))) if ((val = prog_dmabuf_in(as)))
return val; return val;
return put_user(as->usbin.dma.fragsize, int_user_arg); return put_user(as->usbin.dma.fragsize, user_arg);
case SNDCTL_DSP_SETFRAGMENT: case SNDCTL_DSP_SETFRAGMENT:
if (get_user(val, int_user_arg)) if (get_user(val, user_arg))
return -EFAULT; return -EFAULT;
if (file->f_mode & FMODE_READ) { if (file->f_mode & FMODE_READ) {
as->usbin.dma.ossfragshift = val & 0xffff; as->usbin.dma.ossfragshift = val & 0xffff;
...@@ -2616,7 +2616,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2616,7 +2616,7 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
if ((file->f_mode & FMODE_READ && as->usbin.dma.subdivision) || if ((file->f_mode & FMODE_READ && as->usbin.dma.subdivision) ||
(file->f_mode & FMODE_WRITE && as->usbout.dma.subdivision)) (file->f_mode & FMODE_WRITE && as->usbout.dma.subdivision))
return -EINVAL; return -EINVAL;
if (get_user(val, int_user_arg)) if (get_user(val, user_arg))
return -EFAULT; return -EFAULT;
if (val != 1 && val != 2 && val != 4) if (val != 1 && val != 2 && val != 4)
return -EINVAL; return -EINVAL;
...@@ -2629,15 +2629,15 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -2629,15 +2629,15 @@ static int usb_audio_ioctl(struct inode *inode, struct file *file, unsigned int
case SOUND_PCM_READ_RATE: case SOUND_PCM_READ_RATE:
return put_user((file->f_mode & FMODE_READ) ? return put_user((file->f_mode & FMODE_READ) ?
as->usbin.dma.srate : as->usbout.dma.srate, as->usbin.dma.srate : as->usbout.dma.srate,
int_user_arg); user_arg);
case SOUND_PCM_READ_CHANNELS: case SOUND_PCM_READ_CHANNELS:
val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format; val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format;
return put_user(AFMT_ISSTEREO(val2) ? 2 : 1, int_user_arg); return put_user(AFMT_ISSTEREO(val2) ? 2 : 1, user_arg);
case SOUND_PCM_READ_BITS: case SOUND_PCM_READ_BITS:
val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format; val2 = (file->f_mode & FMODE_READ) ? as->usbin.dma.format : as->usbout.dma.format;
return put_user(AFMT_IS16BIT(val2) ? 16 : 8, int_user_arg); return put_user(AFMT_IS16BIT(val2) ? 16 : 8, user_arg);
case SOUND_PCM_WRITE_FILTER: case SOUND_PCM_WRITE_FILTER:
case SNDCTL_DSP_SETSYNCRO: case SNDCTL_DSP_SETSYNCRO:
......
...@@ -406,7 +406,6 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd ...@@ -406,7 +406,6 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
struct hiddev_devinfo dinfo; struct hiddev_devinfo dinfo;
struct hid_report *report; struct hid_report *report;
struct hid_field *field; struct hid_field *field;
int __user *int_user_arg = (int __user *)arg;
void __user *user_arg = (void __user *)arg; void __user *user_arg = (void __user *)arg;
int i; int i;
...@@ -416,7 +415,7 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd ...@@ -416,7 +415,7 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
switch (cmd) { switch (cmd) {
case HIDIOCGVERSION: case HIDIOCGVERSION:
return put_user(HID_VERSION, int_user_arg); return put_user(HID_VERSION, (int __user *)arg);
case HIDIOCAPPLICATION: case HIDIOCAPPLICATION:
if (arg < 0 || arg >= hid->maxapplication) if (arg < 0 || arg >= hid->maxapplication)
...@@ -447,7 +446,7 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd ...@@ -447,7 +446,7 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
return 0; return 0;
case HIDIOCGFLAG: case HIDIOCGFLAG:
if (put_user(list->flags, int_user_arg)) if (put_user(list->flags, (int __user *)arg))
return -EFAULT; return -EFAULT;
return 0; return 0;
...@@ -455,7 +454,7 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd ...@@ -455,7 +454,7 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
case HIDIOCSFLAG: case HIDIOCSFLAG:
{ {
int newflags; int newflags;
if (get_user(newflags, int_user_arg)) if (get_user(newflags, (int __user *)arg))
return -EFAULT; return -EFAULT;
if ((newflags & ~HIDDEV_FLAGS) != 0 || if ((newflags & ~HIDDEV_FLAGS) != 0 ||
...@@ -473,7 +472,7 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd ...@@ -473,7 +472,7 @@ static int hiddev_ioctl(struct inode *inode, struct file *file, unsigned int cmd
int idx, len; int idx, len;
char *buf; char *buf;
if (get_user(idx, int_user_arg)) if (get_user(idx, (int __user *)arg))
return -EFAULT; return -EFAULT;
if ((buf = kmalloc(HID_STRING_SIZE, GFP_KERNEL)) == NULL) if ((buf = kmalloc(HID_STRING_SIZE, GFP_KERNEL)) == NULL)
......
...@@ -1452,7 +1452,7 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int ...@@ -1452,7 +1452,7 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int
audevinfo_t devinfo; audevinfo_t devinfo;
pauerswald_t cp = NULL; pauerswald_t cp = NULL;
unsigned int u; unsigned int u;
unsigned int __user *int_user_arg = (unsigned int __user *)arg; unsigned int __user *user_arg = (unsigned int __user *)arg;
dbg ("ioctl"); dbg ("ioctl");
...@@ -1485,14 +1485,14 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int ...@@ -1485,14 +1485,14 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int
u = ccp->auerdev u = ccp->auerdev
&& (ccp->scontext.id != AUH_UNASSIGNED) && (ccp->scontext.id != AUH_UNASSIGNED)
&& !list_empty (&cp->bufctl.free_buff_list); && !list_empty (&cp->bufctl.free_buff_list);
ret = put_user (u, int_user_arg); ret = put_user (u, user_arg);
break; break;
/* return != 0 if connected to a service channel */ /* return != 0 if connected to a service channel */
case IOCTL_AU_CONNECT: case IOCTL_AU_CONNECT:
dbg ("IOCTL_AU_CONNECT"); dbg ("IOCTL_AU_CONNECT");
u = (ccp->scontext.id != AUH_UNASSIGNED); u = (ccp->scontext.id != AUH_UNASSIGNED);
ret = put_user (u, int_user_arg); ret = put_user (u, user_arg);
break; break;
/* return != 0 if Receive Data available */ /* return != 0 if Receive Data available */
...@@ -1513,14 +1513,14 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int ...@@ -1513,14 +1513,14 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int
u = 1; u = 1;
} }
} }
ret = put_user (u, int_user_arg); ret = put_user (u, user_arg);
break; break;
/* return the max. buffer length for the device */ /* return the max. buffer length for the device */
case IOCTL_AU_BUFLEN: case IOCTL_AU_BUFLEN:
dbg ("IOCTL_AU_BUFLEN"); dbg ("IOCTL_AU_BUFLEN");
u = cp->maxControlLength; u = cp->maxControlLength;
ret = put_user (u, int_user_arg); ret = put_user (u, user_arg);
break; break;
/* requesting a service channel */ /* requesting a service channel */
...@@ -1529,7 +1529,7 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int ...@@ -1529,7 +1529,7 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int
/* requesting a service means: release the previous one first */ /* requesting a service means: release the previous one first */
auerswald_removeservice (cp, &ccp->scontext); auerswald_removeservice (cp, &ccp->scontext);
/* get the channel number */ /* get the channel number */
ret = get_user (u, int_user_arg); ret = get_user (u, user_arg);
if (ret) { if (ret) {
break; break;
} }
...@@ -1566,7 +1566,7 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int ...@@ -1566,7 +1566,7 @@ static int auerchar_ioctl (struct inode *inode, struct file *file, unsigned int
case IOCTL_AU_SLEN: case IOCTL_AU_SLEN:
dbg ("IOCTL_AU_SLEN"); dbg ("IOCTL_AU_SLEN");
u = AUSI_DLEN; u = AUSI_DLEN;
ret = put_user (u, int_user_arg); ret = put_user (u, user_arg);
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment