Re: [PATCH] macvtap: remove wrong sock_put() in macvtap_put_queue()

From: David Miller
Date: Thu Jun 16 2011 - 22:58:40 EST

From: Jason Wang <jasowang@xxxxxxxxxx>
Date: Mon, 13 Jun 2011 11:15:19 +0800

> The calling of sock_put() should be delayed after synchronize_rcu(),
> otherwise inconsist data may be seen during packets transmitting.
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>

You're leaking sockets now.

This function has to release the socket twice if there is
a non-NULL vlan assigned to the queue.

Now you're only doing it once in that situation.

Which probably fixes your crash, but adds a socket leak.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at