mirror of
https://github.com/SCST-project/scst.git
synced 2026-07-20 06:52:18 +00:00
fcst: Add more debugging code in ft_sess_put()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4950 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+2
-3
@@ -490,9 +490,8 @@ static void ft_sess_free(struct kref *kref)
|
||||
|
||||
static void ft_sess_put(struct ft_sess *sess)
|
||||
{
|
||||
int sess_held = atomic_read(&sess->kref.refcount);
|
||||
|
||||
BUG_ON(!sess_held);
|
||||
BUG_ON(!sess);
|
||||
BUG_ON(atomic_read(&sess->kref.refcount) <= 0);
|
||||
kref_put(&sess->kref, ft_sess_free);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user