diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-07-05 23:09:37 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-07-05 23:09:37 +0000 |
commit | aba344fdfed81b2c03d6114c54cfd73a486aa10b (patch) | |
tree | d032d8430bf1234c3ecc6f6330d6de6e887e5963 /net/core | |
parent | 40c138bfc6d37dbff5339f84575db1e3cec6e34e (diff) |
Merge with Linux 2.3.9.
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/scm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/scm.c b/net/core/scm.c index cdb5f3d03..7e9f466ca 100644 --- a/net/core/scm.c +++ b/net/core/scm.c @@ -232,7 +232,7 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) 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 @@ struct scm_fp_list *scm_fp_dup(struct scm_fp_list *fpl) 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; } |