]> Pileus Git - ~andy/linux/blobdiff - fs/hpfs/dir.c
Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes...
[~andy/linux] / fs / hpfs / dir.c
index f46ae025bfb58bc172716efcb66772add1daac43..96a8ed91ceddfe942dfe21d16529d2fb86567884 100644 (file)
@@ -29,6 +29,10 @@ static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence)
        struct hpfs_inode_info *hpfs_inode = hpfs_i(i);
        struct super_block *s = i->i_sb;
 
+       /* Somebody else will have to figure out what to do here */
+       if (whence == SEEK_DATA || whence == SEEK_HOLE)
+               return -EINVAL;
+
        hpfs_lock(s);
 
        /*printk("dir lseek\n");*/