LINUX24: cr_ref is a regular int

cr_ref is a regular integer, not an atomic_t, so we need to just
assign '1' to it directly.

Change-Id: I3533c79a67f7be35724cc81553d24bfecb7b81d3
Reviewed-on: http://gerrit.openafs.org/2269
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Andrew Deason 2010-06-28 10:42:05 -05:00 committed by Derrick Brashear
parent 773b4968e4
commit 26cd8a302c

View File

@ -87,7 +87,7 @@ afs_osi_proc2cred(afs_proc_t * pr)
* returned from here, we'll go boom, because it's statically
* allocated. */
atomic_set(&cr.cr_ref, 1);
cr.cr_ref = 1;
afs_set_cr_uid(&cr, task_uid(pr));
cr.cr_ngroups = pr->ngroups;