Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
[deliverable/linux.git] / net / packet / af_packet.c
index 4f76e5552d8e94dff5e43fd4d1861a8dede91751..ebe5718baa319bc004cea0231a9038ce84e1c55f 100644 (file)
@@ -1987,7 +1987,8 @@ static int packet_ioctl(struct socket *sock, unsigned int cmd,
        switch (cmd) {
                case SIOCOUTQ:
                {
-                       int amount = atomic_read(&sk->sk_wmem_alloc);
+                       int amount = sk_wmem_alloc_get(sk);
+
                        return put_user(amount, (int __user *)arg);
                }
                case SIOCINQ:
This page took 0.027232 seconds and 5 git commands to generate.