Skip to content
Commit a41bd25a authored by Paolo Abeni's avatar Paolo Abeni Committed by Trond Myklebust
Browse files

sunrpc: fix UDP memory accounting



The commit f9b2ee71 ("SUNRPC: Move UDP receive data path
into a workqueue context"), as a side effect, moved the
skb_free_datagram() call outside the scope of the related socket
lock, but UDP sockets require such lock to be held for proper
memory accounting.
Fix it by replacing skb_free_datagram() with
skb_free_datagram_locked().

Fixes: f9b2ee71 ("SUNRPC: Move UDP receive data path into a workqueue context")
Reported-and-tested-by: default avatarJan Stancek <jstancek@redhat.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Cc: stable@vger.kernel.org # 4.4+
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 98b0f80c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment