git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bridge: check brport attr show in brport_show
[pandora-kernel.git]
/
net
/
l2tp
/
l2tp_debugfs.c
diff --git
a/net/l2tp/l2tp_debugfs.c
b/net/l2tp/l2tp_debugfs.c
index
7613013
..
8bb0d56
100644
(file)
--- a/
net/l2tp/l2tp_debugfs.c
+++ b/
net/l2tp/l2tp_debugfs.c
@@
-51,7
+51,7
@@
static void l2tp_dfs_next_tunnel(struct l2tp_dfs_seq_data *pd)
static void l2tp_dfs_next_session(struct l2tp_dfs_seq_data *pd)
{
static void l2tp_dfs_next_session(struct l2tp_dfs_seq_data *pd)
{
- pd->session = l2tp_session_
find_nth(pd->tunnel, pd->session_idx
);
+ pd->session = l2tp_session_
get_nth(pd->tunnel, pd->session_idx, true
);
pd->session_idx++;
if (pd->session == NULL) {
pd->session_idx++;
if (pd->session == NULL) {
@@
-227,10
+227,14
@@
static int l2tp_dfs_seq_show(struct seq_file *m, void *v)
}
/* Show the tunnel or session context */
}
/* Show the tunnel or session context */
- if (
pd->session == NULL)
+ if (
!pd->session) {
l2tp_dfs_seq_tunnel_show(m, pd->tunnel);
l2tp_dfs_seq_tunnel_show(m, pd->tunnel);
- else
+ } else {
l2tp_dfs_seq_session_show(m, pd->session);
l2tp_dfs_seq_session_show(m, pd->session);
+ if (pd->session->deref)
+ pd->session->deref(pd->session);
+ l2tp_session_dec_refcount(pd->session);
+ }
out:
return 0;
out:
return 0;