]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/fat/inode.c
Merge branch 'for-2.6.39/core' of git://git.kernel.dk/linux-2.6-block
[mirror_ubuntu-artful-kernel.git] / fs / fat / inode.c
index f4ff09fb79b1a879dbc702c426788633721f7a0f..8d68690bdcf1b2f26bb318972218930daa9676a6 100644 (file)
@@ -756,8 +756,10 @@ fat_encode_fh(struct dentry *de, __u32 *fh, int *lenp, int connectable)
        struct inode *inode =  de->d_inode;
        u32 ipos_h, ipos_m, ipos_l;
 
-       if (len < 5)
+       if (len < 5) {
+               *lenp = 5;
                return 255; /* no room */
+       }
 
        ipos_h = MSDOS_I(inode)->i_pos >> 8;
        ipos_m = (MSDOS_I(inode)->i_pos & 0xf0) << 24;