Small NFS bugfix

Jeff Garzik (jgarzik@cc.gatech.edu)
Mon, 21 Aug 1995 01:43:47 -0400 (EDT)


The following is a quick patch to fs/nfs/inode.c. It fixes a problem
where the module's usage count would not be decremented when a mount
fails b/c no address is passed.

This patch is to 1.3.20 code.

Jeff

*** inode.c.old Mon Aug 21 01:36:57 1995
--- inode.c Mon Aug 21 01:37:22 1995
***************
*** 143,148 ****
--- 143,149 ----
if (data->addr.sin_addr.s_addr == INADDR_ANY) { /* No address passed */
if (((struct sockaddr_in *)(&server->toaddr))->sin_addr.s_addr == INADDR_ANY) {
printk("NFS: Error passed unconnected socket and no address\n") ;
+ MOD_DEC_USE_COUNT;
return NULL ;
} else {
/* Need access to socket internals JSP */