diff options
author | Paolo Abeni <pabeni@redhat.com> | 2016-08-25 18:42:35 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-09-03 16:00:49 +0200 |
commit | a41bd25ae67d3e4052c7f00ee9f2b4ba9219309e (patch) | |
tree | b2778087d05d75f9f08f9ea1edd103e1b1864d33 /ipc/msg.c | |
parent | NFSv4.x: Fix a refcount leak in nfs_callback_up_net (diff) | |
download | linux-a41bd25ae67d3e4052c7f00ee9f2b4ba9219309e.tar.xz linux-a41bd25ae67d3e4052c7f00ee9f2b4ba9219309e.zip |
sunrpc: fix UDP memory accounting
The commit f9b2ee714c5c ("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: f9b2ee714c5c ("SUNRPC: Move UDP receive data path into a workqueue context")
Reported-and-tested-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Cc: stable@vger.kernel.org # 4.4+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'ipc/msg.c')
0 files changed, 0 insertions, 0 deletions