mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
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:
parent
773b4968e4
commit
26cd8a302c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user