summaryrefslogtreecommitdiff
path: root/fs/devfs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 20:18:41 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 20:18:41 -0800
commitc37fa164f793735b32aa3f53154ff1a7659e6442 (patch)
treebfd5741e0e9b26374f2dc1668905cf6f12c18aba /fs/devfs
parent1d66e22e0f6b1cca563d240f90697b05860dca4d (diff)
v2.4.9.9 -> v2.4.9.10
- Alan Cox: continued merging - Mingming Cao: make msgrcv/shmat check the queue/segment ID's properly - Greg KH: USB serial init failure fix, Xircom serial converter driver - Neil Brown: nsfd/raid/md/lockd cleanups - Ingo Molnar: multipath RAID personality, raid xor update - Hugh Dickins/Marcelo Tosatti: swapin read-ahead race fix - Vojtech Pavlik: fix up some of the infrastructure for x86-64 - Robert Love: AMD 761 AGP GART support - Jens Axboe: fix SCSI-generic queue handling race - me: be sane about page reference bits
Diffstat (limited to 'fs/devfs')
-rw-r--r--fs/devfs/base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/devfs/base.c b/fs/devfs/base.c
index 4d9852d5fd26..d0c15648a9e7 100644
--- a/fs/devfs/base.c
+++ b/fs/devfs/base.c
@@ -2361,7 +2361,8 @@ static int devfs_notify_change (struct dentry *dentry, struct iattr *iattr)
if (de == NULL) return -ENODEV;
retval = inode_change_ok (inode, iattr);
if (retval != 0) return retval;
- inode_setattr (inode, iattr);
+ retval = inode_setattr (inode, iattr);
+ if (retval != 0) return retval;
if ( iattr->ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID) )
devfsd_notify_one (de, DEVFSD_NOTIFY_CHANGE, inode->i_mode,
inode->i_uid, inode->i_gid, fs_info);