]> git.hungrycats.org Git - linux/commitdiff
The seq_file code already disabled pread/pwrite access,
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 7 Aug 2004 12:09:26 +0000 (05:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 7 Aug 2004 12:09:26 +0000 (05:09 -0700)
no need for the mtrr code to check any more.

arch/i386/kernel/cpu/mtrr/if.c

index 4f53d52de5fcfcaf045c845c0d156e2d85b387ff..0946844217b9cc5879068999789db230a6256074 100644 (file)
@@ -101,9 +101,6 @@ mtrr_write(struct file *file, const char __user *buf, size_t len, loff_t * ppos)
 
        if (!capable(CAP_SYS_ADMIN))
                return -EPERM;
-       /*  Can't seek (pwrite) on this device  */
-       if (ppos != &file->f_pos)
-               return -ESPIPE;
        memset(line, 0, LINE_SIZE);
        if (len > LINE_SIZE)
                len = LINE_SIZE;