patch-2.2.7 linux/fs/affs/dir.c

Next file: linux/fs/affs/namei.c
Previous file: linux/fs/adfs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.6/linux/fs/affs/dir.c linux/fs/affs/dir.c
@@ -90,9 +90,6 @@
 
 	pr_debug("AFFS: readdir(ino=%lu,f_pos=%lu)\n",inode->i_ino,(unsigned long)filp->f_pos);
 
-	if (!inode || !S_ISDIR(inode->i_mode))
-		return -EBADF;
-
 	stored = 0;
 	dir_bh = NULL;
 	fh_bh  = NULL;

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