afs: Panic on afs_conn refcount imbalance
authorAndrew Deason <adeason@sinenomine.net>
Thu, 22 Dec 2011 20:48:49 +0000 (15:48 -0500)
committerDerrick Brashear <shadow@dementix.org>
Tue, 27 Dec 2011 04:34:59 +0000 (20:34 -0800)
commit8a574ba16a80fc2b8b703ddcfc99486b977e6071
tree4b075b786fb1deed98eb82e1753a0581ba8ad9e0
parent79f69f2eb130c1c5cb6cdfa4e7a129f450a58339
afs: Panic on afs_conn refcount imbalance

An undercounted afs_conn can easily cause a panic and/or memory
corruption later on, since we put an rx_connection reference with each
afs_conn reference. Panic as soon as we detect this, as this indicates
a serious bug.

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