patch-2.3.16 linux/fs/devpts/root.c
Next file: linux/fs/dquot.c
Previous file: linux/fs/devpts/inode.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Fri Aug 27 12:02:04 1999
- Orig file:
v2.3.15/linux/fs/devpts/root.c
- Orig date:
Sun Jun 27 10:10:41 1999
diff -u --recursive --new-file v2.3.15/linux/fs/devpts/root.c linux/fs/devpts/root.c
@@ -152,10 +152,9 @@
unsigned int nentry = *p++ - '0';
if ( nentry > 9 )
return NULL;
- nentry += entry * 10;
- if (nentry < entry)
+ if ( entry >= ~0U/10 )
return NULL;
- entry = nentry;
+ entry = nentry + entry * 10;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)