]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/irda/af_irda.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[karo-tx-linux.git] / net / irda / af_irda.c
index 3eb5bcc75f99083eb971b93eddbb967d704ad81a..5922febe25c42dc9a602378a600db8d8da674f85 100644 (file)
@@ -1762,7 +1762,8 @@ static int irda_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
        switch (cmd) {
        case TIOCOUTQ: {
                long amount;
-               amount = sk->sk_sndbuf - atomic_read(&sk->sk_wmem_alloc);
+
+               amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
                if (amount < 0)
                        amount = 0;
                if (put_user(amount, (unsigned int __user *)arg))