From: Or Gerlitz Date: Wed, 29 Jan 2014 16:08:59 +0000 (+0200) Subject: net/ipv4: Use non-atomic allocation of udp offloads structure instance X-Git-Tag: v3.14-rc3~36^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5aaab12b2b4bc4acab7384c17a87f3406e5047d;p=pandora-kernel.git net/ipv4: Use non-atomic allocation of udp offloads structure instance Since udp_add_offload() can be called from non-sleepable context e.g under this call tree from the vxlan driver use case: vxlan_socket_create() <-- holds the spinlock -> vxlan_notify_add_rx_port() -> udp_add_offload() <-- schedules we should allocate the udp_offloads structure in atomic manner. Fixes: b582ef0 ('net: Add GRO support for UDP encapsulating protocols') Reported-by: Dan Carpenter Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed