Remove 'type' argument from access_ok() function
[linux-2.6-block.git] / sound / core / seq / seq_clientmgr.c
index 92e6524a3a9d965fca88364e83a4defe137433c7..7d4640d1fe9fb8a8ab8eecf045798497cb3e38f3 100644 (file)
@@ -393,7 +393,7 @@ static ssize_t snd_seq_read(struct file *file, char __user *buf, size_t count,
        if (!(snd_seq_file_flags(file) & SNDRV_SEQ_LFLG_INPUT))
                return -ENXIO;
 
-       if (!access_ok(VERIFY_WRITE, buf, count))
+       if (!access_ok(buf, count))
                return -EFAULT;
 
        /* check client structures are in place */