patch-2.4.0-test10 linux/fs/attr.c

Next file: linux/fs/autofs4/expire.c
Previous file: linux/drivers/zorro/zorro.ids
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/fs/attr.c linux/fs/attr.c
@@ -110,6 +110,9 @@
 	time_t now = CURRENT_TIME;
 	unsigned int ia_valid = attr->ia_valid;
 
+	if (!inode)
+		BUG();
+
 	attr->ia_ctime = now;
 	if (!(ia_valid & ATTR_ATIME_SET))
 		attr->ia_atime = now;
@@ -117,7 +120,7 @@
 		attr->ia_mtime = now;
 
 	lock_kernel();
-	if (inode && inode->i_op && inode->i_op->setattr) 
+	if (inode->i_op && inode->i_op->setattr) 
 		error = inode->i_op->setattr(dentry, attr);
 	else {
 		error = inode_change_ok(inode, attr);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)