]> err.no Git - linux-2.6/blobdiff - net/ipv6/udp.c
[ARM] 5117/1: pxafb: fix __devinit/exit annotations
[linux-2.6] / net / ipv6 / udp.c
index 1b35c4722004551e9b92eb498a0f1037c44ed8bf..dd309626ae9a737442aa1268c7a5f151507e7536 100644 (file)
@@ -534,7 +534,9 @@ static void udp_v6_flush_pending_frames(struct sock *sk)
 {
        struct udp_sock *up = udp_sk(sk);
 
-       if (up->pending) {
+       if (up->pending == AF_INET)
+               udp_flush_pending_frames(sk);
+       else if (up->pending) {
                up->len = 0;
                up->pending = 0;
                ip6_flush_pending_frames(sk);