Comment 8 for bug 210581

Revision history for this message
alek du (alek-du) wrote :

Code committed to Moblin kernel but currently I have no way to release it.

 diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c
 new file mode 100644
-index 0000000..6dee4ac
+index 0000000..ea10d77
 --- /dev/null
 +++ b/fs/unionfs/inode.c
-@@ -0,0 +1,1097 @@
+@@ -0,0 +1,1101 @@
 +/*
 + * Copyright (c) 2003-2007 Erez Zadok
 + * Copyright (c) 2003-2006 Charles P. Wright
@@ -5727,6 +5727,10 @@ index 0000000..6dee4ac
 +
 + lower_inode = unionfs_lower_inode(inode);
 +
++ if (!lower_inode || !lower_dentry) {
++ err = -ENOENT;
++ goto out;
++ }
 + /*
 + * If shrinking, first truncate upper level to cancel writing dirty
 + * pages beyond the new eof; and also if its' maxbytes is more