]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[NET]: Auto-zero the allocated sock object
authorPavel Emelyanov <xemul@openvz.org>
Thu, 1 Nov 2007 07:34:42 +0000 (00:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2007 07:34:42 +0000 (00:34 -0700)
commit3f0666ee3039443fa7b7cf436dd16ce0dd8e3f95
tree2d2eb78ad66f312fc85ab9c6a009207535d736ed
parentc308c1b20e2eb7b13f200a7c18b3f23561318367
[NET]: Auto-zero the allocated sock object

We have a __GFP_ZERO flag that allocates a zeroed chunk of memory.
Use it in the sk_alloc() and avoid a hand-made memset().

This is a temporary patch that will help us in the nearest future :)

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c