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

Next file: linux/fs/qnx4/namei.c
Previous file: linux/fs/proc/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.6/linux/fs/qnx4/dir.c linux/fs/qnx4/dir.c
@@ -35,9 +35,6 @@
 	blknum = inode->u.qnx4_i.i_first_xtnt.xtnt_blk - 1 +
 	    ((filp->f_pos >> 6) >> 3);
 
-	if (!inode || !inode->i_sb || !S_ISDIR(inode->i_mode)) {
-		return -EBADF;
-	}
 	QNX4DEBUG(("qnx4_readdir:i_size = %ld\n", (long) inode->i_size));
 	QNX4DEBUG(("filp->f_pos         = %ld\n", (long) filp->f_pos));
 	QNX4DEBUG(("BlkNum              = %ld\n", (long) blknum));

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