Commit e928731a authored by Eric Dumazet's avatar Eric Dumazet Committed by Greg Kroah-Hartman

ax25: Fix SIOCAX25GETINFO ioctl

[ Upstream commit 407fc5cf ]

rcv_q & snd_q initializations were reversed in commit
31e6d363
(net: correct off-by-one write allocations reports)
Signed-off-by: default avatarJan Rafaj <jr+netfilter-devel@cedric.unob.cz>
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 84b17679
...@@ -1781,8 +1781,8 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) ...@@ -1781,8 +1781,8 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
ax25_info.idletimer = ax25_display_timer(&ax25->idletimer) / (60 * HZ); ax25_info.idletimer = ax25_display_timer(&ax25->idletimer) / (60 * HZ);
ax25_info.n2count = ax25->n2count; ax25_info.n2count = ax25->n2count;
ax25_info.state = ax25->state; ax25_info.state = ax25->state;
ax25_info.rcv_q = sk_wmem_alloc_get(sk); ax25_info.rcv_q = sk_rmem_alloc_get(sk);
ax25_info.snd_q = sk_rmem_alloc_get(sk); ax25_info.snd_q = sk_wmem_alloc_get(sk);
ax25_info.vs = ax25->vs; ax25_info.vs = ax25->vs;
ax25_info.vr = ax25->vr; ax25_info.vr = ax25->vr;
ax25_info.va = ax25->va; ax25_info.va = ax25->va;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment