Micropatch for 2.3.10

B. James Phillippe (bryan@terran.org)
Tue, 20 Jul 1999 21:24:37 -0700 (PDT)


Greetings,

This is probably already fixed in a pre-release.

Index: net/core/scm.c
===================================================================
RCS file: /var/local/CVS/linux-2.3/net/core/scm.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 scm.c
--- net/core/net/core/scm.c 1999/06/25 04:29:13 1.1.1.1
+++ net/core/net/core/scm.c 1999/07/20 06:25:57
@@ -232,7 +232,7 @@
break;
}
/* Bump the usage count and install the file. */
- fp[i]->f_count++;
+ atomic_inc(&fp[i]->f_count);
current->files->fd[new_fd] = fp[i];
}

@@ -274,7 +274,7 @@
memcpy(new_fpl, fpl, sizeof(*fpl));

for (i=fpl->count-1; i>=0; i--)
- fpl->fp[i]->f_count++;
+ atomic_inc(&fpl->fp[i]->f_count);
}
return new_fpl;
}

-bp

--
# bryan at terran dot org
# http://www.terran.org/~bryan

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/