patch-2.4.7 linux/net/atm/proc.c

Next file: linux/net/core/dev.c
Previous file: linux/net/atm/mpoa_proc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/net/atm/proc.c linux/net/atm/proc.c
@@ -495,7 +495,7 @@
 	unsigned long page;
 	int length;
 
-	if (count < 0) return -EINVAL;
+	if (count == 0) return 0;
 	page = get_free_page(GFP_KERNEL);
 	if (!page) return -ENOMEM;
 	dev = ((struct proc_dir_entry *) file->f_dentry->d_inode->u.generic_ip)
@@ -524,7 +524,7 @@
 	info = ((struct proc_dir_entry *) file->f_dentry->d_inode->u.generic_ip)
 	    ->data;
 
-	if (count < 0) return -EINVAL;
+	if (count == 0) return 0;
 	page = get_free_page(GFP_KERNEL);
 	if (!page) return -ENOMEM;
 	length = (*info)(*pos,(char *) page);

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