Skip to content

Commit

Permalink
l2tp: calling the ref() instead of deref()
Browse files Browse the repository at this point in the history
This is a cut and paste typo.  We call ->ref() a second time instead
of ->deref().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Mar 22, 2013
1 parent f3c78f8 commit 1b7c92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/l2tp/l2tp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1b7c92b

Please sign in to comment.