Loading fs/cifs/inode.c +50 −47 Original line number Diff line number Diff line Loading @@ -404,7 +404,7 @@ int cifs_get_inode_info_unix(struct inode **pinode, } static int cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path, cifs_sfu_type(struct cifs_fattr *fattr, const char *path, struct cifs_sb_info *cifs_sb, unsigned int xid) { int rc; Loading @@ -416,6 +416,7 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path, char buf[24]; unsigned int bytes_read; char *pbuf; int buf_type = CIFS_NO_BUFFER; pbuf = buf; Loading @@ -441,16 +442,19 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path, cifs_sb->local_nls, cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); if (rc == 0) { int buf_type = CIFS_NO_BUFFER; if (rc) { cifs_put_tlink(tlink); return rc; } /* Read header */ io_parms.netfid = netfid; io_parms.pid = current->tgid; io_parms.tcon = tcon; io_parms.offset = 0; io_parms.length = 24; rc = CIFSSMBRead(xid, &io_parms, &bytes_read, &pbuf, &buf_type); rc = CIFSSMBRead(xid, &io_parms, &bytes_read, &pbuf, &buf_type); if ((rc == 0) && (bytes_read >= 8)) { if (memcmp("IntxBLK", pbuf, 8) == 0) { cifs_dbg(FYI, "Block device\n"); Loading Loading @@ -491,7 +495,6 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path, rc = -EOPNOTSUPP; /* or some unknown SFU type */ } CIFSSMBClose(xid, tcon, netfid); } cifs_put_tlink(tlink); return rc; } Loading Loading
fs/cifs/inode.c +50 −47 Original line number Diff line number Diff line Loading @@ -404,7 +404,7 @@ int cifs_get_inode_info_unix(struct inode **pinode, } static int cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path, cifs_sfu_type(struct cifs_fattr *fattr, const char *path, struct cifs_sb_info *cifs_sb, unsigned int xid) { int rc; Loading @@ -416,6 +416,7 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path, char buf[24]; unsigned int bytes_read; char *pbuf; int buf_type = CIFS_NO_BUFFER; pbuf = buf; Loading @@ -441,16 +442,19 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path, cifs_sb->local_nls, cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); if (rc == 0) { int buf_type = CIFS_NO_BUFFER; if (rc) { cifs_put_tlink(tlink); return rc; } /* Read header */ io_parms.netfid = netfid; io_parms.pid = current->tgid; io_parms.tcon = tcon; io_parms.offset = 0; io_parms.length = 24; rc = CIFSSMBRead(xid, &io_parms, &bytes_read, &pbuf, &buf_type); rc = CIFSSMBRead(xid, &io_parms, &bytes_read, &pbuf, &buf_type); if ((rc == 0) && (bytes_read >= 8)) { if (memcmp("IntxBLK", pbuf, 8) == 0) { cifs_dbg(FYI, "Block device\n"); Loading Loading @@ -491,7 +495,6 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path, rc = -EOPNOTSUPP; /* or some unknown SFU type */ } CIFSSMBClose(xid, tcon, netfid); } cifs_put_tlink(tlink); return rc; } Loading