Re: [PATCH 4/8] Auto-zero the allocated sock object

2007-10-31 Thread David Miller
From: Pavel Emelyanov <[EMAIL PROTECTED]> Date: Wed, 31 Oct 2007 16:48:59 +0300 > 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-

[PATCH 4/8] Auto-zero the allocated sock object

2007-10-31 Thread Pavel Emelyanov
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 <[EMAIL PROTECTED]> --- diff --git a/net/core/sock.c b/net/core/sock.c