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:
Bart Van Assche
2013-08-13 18:32:41 +00:00
parent ce2d1a93a4
commit a578373d4e
+2 -3
View File
@@ -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);
}