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

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

diff -u --recursive --new-file v2.2.6/linux/fs/adfs/dir.c linux/fs/adfs/dir.c
@@ -280,8 +280,6 @@
 	unsigned long parent_object_id, dir_object_id;
 	int buffers, pos;
 
-	if (!inode || !S_ISDIR(inode->i_mode))
-		return -EBADF;
 	sb = inode->i_sb;
 
 	if (filp->f_pos > ADFS_NUM_DIR_ENTRIES + 2)

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