diff options
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r-- | net/appletalk/ddp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index f7a53b219ef0..590b83963622 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c | |||
@@ -1748,8 +1748,7 @@ static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
1748 | switch (cmd) { | 1748 | switch (cmd) { |
1749 | /* Protocol layer */ | 1749 | /* Protocol layer */ |
1750 | case TIOCOUTQ: { | 1750 | case TIOCOUTQ: { |
1751 | long amount = sk->sk_sndbuf - | 1751 | long amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); |
1752 | atomic_read(&sk->sk_wmem_alloc); | ||
1753 | 1752 | ||
1754 | if (amount < 0) | 1753 | if (amount < 0) |
1755 | amount = 0; | 1754 | amount = 0; |