Skip to contentSkip to conversation

l2tp: calling the ref() instead of deref()

PATCH Applied Dan Carpenter 2 participants 2 messages Mar 22, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 l2tp: calling the ref() instead of deref()

This is a cut and paste typo. We call ->ref() a second time instead of ->deref().

---
Only needed in linux-next.

net/l2tp/l2tp_core.c +1 -1
index 8aecf5d..6984c3a 100644
@@ -1777,7 +1777,7 @@ int l2tp_session_delete(struct l2tp_session *session)
 	if (session->session_close != NULL)
 		(*session->session_close)(session);
 	if (session->deref)
-		(*session->ref)(session);
+		(*session->deref)(session);
 	l2tp_session_dec_refcount(session);
 	return 0;
 }