summaryrefslogtreecommitdiff
path: root/net/atm/lec.h
diff options
context:
space:
mode:
authorJarek Poplawski <jarkao2@gmail.com>2009-08-31 03:15:36 +0400
committerDavid S. Miller <davem@davemloft.net>2009-09-02 04:49:00 +0400
commitd66ee0587c3927aea5178a822976c7c853d815fe (patch)
tree3367ebb2757501223ae658b23a96f352aa6ebba8 /net/atm/lec.h
parent38bddf04bcfe661fbdab94888c3b72c32f6873b3 (diff)
downloadlinux-d66ee0587c3927aea5178a822976c7c853d815fe.tar.xz
net: sk_free() should be allowed right after sk_alloc()
After commit 2b85a34e911bf483c27cfdd124aeb1605145dc80 (net: No more expensive sock_hold()/sock_put() on each tx) sk_free() frees socks conditionally and depends on sk_wmem_alloc being set e.g. in sock_init_data(). But in some cases sk_free() is called earlier, usually after other alloc errors. Fix is to move sk_wmem_alloc initialization from sock_init_data() to sk_alloc() itself. Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/lec.h')
0 files changed, 0 insertions, 0 deletions