From d6434e1042f3b0a6dfe1b1f615af369486f9b1fa Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 9 Oct 1999 00:00:47 +0000 Subject: Merge with 2.3.19. --- fs/devpts/inode.c | 2 +- fs/devpts/root.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'fs/devpts') diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index bad4281ff..b11cae5ba 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c @@ -348,7 +348,7 @@ void devpts_pty_kill(int number) } } -__initfunc(int init_devpts_fs(void)) +int __init init_devpts_fs(void) { return register_filesystem(&devpts_fs_type); diff --git a/fs/devpts/root.c b/fs/devpts/root.c index 9b5408235..5b5948e80 100644 --- a/fs/devpts/root.c +++ b/fs/devpts/root.c @@ -152,10 +152,9 @@ static struct dentry *devpts_root_lookup(struct inode * dir, struct dentry * den 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; } } -- cgit v1.2.3