]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/hpfs/dir.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[karo-tx-linux.git] / 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");*/