Jarek Poplawski d66ee0587c 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>
2009-09-01 17:49:00 -07:00
..
2009-05-25 01:53:53 -07:00
2009-08-03 13:24:39 -07:00
2009-08-09 21:45:32 -07:00
2009-01-04 17:29:21 -08:00
2009-08-06 13:08:40 -07:00
2009-05-25 01:53:53 -07:00
2009-07-12 12:22:34 -07:00
2009-08-23 22:55:51 -07:00
2009-08-17 13:38:34 -04:00
2009-08-17 18:05:32 -07:00
2009-08-05 12:14:09 -07:00
2009-08-06 13:08:38 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00