afs: Grab a reference to setp in afs_icl_Event4
authorAndrew Deason <adeason@sinenomine.net>
Tue, 27 Dec 2011 02:22:08 +0000 (21:22 -0500)
committerDerrick Brashear <shadow@dementix.org>
Tue, 3 Jan 2012 15:30:33 +0000 (07:30 -0800)
commit7461fa11939556d3b6f3ea38da7ff65607805579
tree93b4ccb9482ade6fde5b121134f99b9469d909e1
parent267934d0e6910c8d8166a6e78f93c1bab40857b8
afs: Grab a reference to setp in afs_icl_Event4

We can drop GLOCK in several places in afs_icl_Event4 and the
afs_icl_AppendRecord callee. To ensure that the given afs_icl_set does
not get freed while we have GLOCK dropped, grab a reference to the
set.

Thanks to Ryan C. Underwood for reporting an issue triggered by this.

Change-Id: Ifeda229b444abd75b0f22c7acf18a7553d833964
Reviewed-on: http://gerrit.openafs.org/6431
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/afs_icl.c