Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94083
b: refs/heads/master
c: 305787e
h: refs/heads/master
i:
  94081: eefdd6b
  94079: 1cfee4f
v: v3
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Apr 28, 2008
1 parent 64e4176 commit 664d180
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdf8803768db6f652d498628fe1421a23c025253
refs/heads/master: 305787e44ebc21d87ab4d4949da5b97d4252aa9b
17 changes: 8 additions & 9 deletions trunk/fs/ncpfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ static int __ncp_ioctl(struct inode *inode, struct file *filp,
struct dentry* dentry = inode->i_sb->s_root;

if (dentry) {
struct inode* inode = dentry->d_inode;
struct inode* s_inode = dentry->d_inode;

if (inode) {
sr.volNumber = NCP_FINFO(inode)->volNumber;
sr.dirEntNum = NCP_FINFO(inode)->dirEntNum;
if (s_inode) {
sr.volNumber = NCP_FINFO(s_inode)->volNumber;
sr.dirEntNum = NCP_FINFO(s_inode)->dirEntNum;
sr.namespace = server->name_space[sr.volNumber];
} else
DPRINTK("ncpfs: s_root->d_inode==NULL\n");
Expand Down Expand Up @@ -439,12 +439,12 @@ static int __ncp_ioctl(struct inode *inode, struct file *filp,
dentry = inode->i_sb->s_root;
server->root_setuped = 1;
if (dentry) {
struct inode* inode = dentry->d_inode;
struct inode* s_inode = dentry->d_inode;

if (inode) {
NCP_FINFO(inode)->volNumber = vnum;
NCP_FINFO(inode)->dirEntNum = de;
NCP_FINFO(inode)->DosDirNum = dosde;
NCP_FINFO(s_inode)->volNumber = vnum;
NCP_FINFO(s_inode)->dirEntNum = de;
NCP_FINFO(s_inode)->DosDirNum = dosde;
} else
DPRINTK("ncpfs: s_root->d_inode==NULL\n");
} else
Expand Down Expand Up @@ -519,7 +519,6 @@ static int __ncp_ioctl(struct inode *inode, struct file *filp,
}
{
struct ncp_lock_ioctl rqdata;
int result;

if (copy_from_user(&rqdata, argp, sizeof(rqdata)))
return -EFAULT;
Expand Down

0 comments on commit 664d180

Please sign in to comment.