Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27160
b: refs/heads/master
c: 71601e2
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Jun 8, 2006
1 parent ed96fe2 commit 4618daa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: bc1c116974a5c3f498112a6f175d3e4a8cd5bdbc
refs/heads/master: 71601e2b33dad9acb8d7844f7321f90ed9d1bce8
3 changes: 2 additions & 1 deletion trunk/fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ static struct inode *debugfs_get_inode(struct super_block *sb, int mode, dev_t d
static int debugfs_mknod(struct inode *dir, struct dentry *dentry,
int mode, dev_t dev)
{
struct inode *inode = debugfs_get_inode(dir->i_sb, mode, dev);
struct inode *inode;
int error = -EPERM;

if (dentry->d_inode)
return -EEXIST;

inode = debugfs_get_inode(dir->i_sb, mode, dev);
if (inode) {
d_instantiate(dentry, inode);
dget(dentry);
Expand Down

0 comments on commit 4618daa

Please sign in to comment.