module_put(midi_devs[dev]->owner);
}
-int MIDIbuf_write(int dev, struct file *file, const char *buf, int count)
+int MIDIbuf_write(int dev, struct file *file, const char __user *buf, int count)
{
int c, n, i;
unsigned char tmp_data;
}
-int MIDIbuf_read(int dev, struct file *file, char *buf, int count)
+int MIDIbuf_read(int dev, struct file *file, char __user *buf, int count)
{
int n, c = 0;
unsigned char tmp_data;
}
int MIDIbuf_ioctl(int dev, struct file *file,
- unsigned int cmd, caddr_t arg)
+ unsigned int cmd, void __user *arg)
{
int val;
switch (cmd)
{
case SNDCTL_MIDI_PRETIME:
- if (get_user(val, (int *)arg))
+ if (get_user(val, (int __user *)arg))
return -EFAULT;
if (val < 0)
val = 0;
val = (HZ * val) / 10;
parms[dev].prech_timeout = val;
- return put_user(val, (int *)arg);
+ return put_user(val, (int __user *)arg);
default:
if (!midi_devs[dev]->ioctl)