diff options
| author | Pavel Emelyanov <[email protected]> | 2007-11-01 07:34:42 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2007-11-01 07:34:42 +0000 |
| commit | 3f0666ee3039443fa7b7cf436dd16ce0dd8e3f95 (patch) | |
| tree | 2d2eb78ad66f312fc85ab9c6a009207535d736ed /net/unix/af_unix.c | |
| parent | [NET]: Cleanup the allocation/freeing of the sock object (diff) | |
| download | kernel-3f0666ee3039443fa7b7cf436dd16ce0dd8e3f95.tar.gz kernel-3f0666ee3039443fa7b7cf436dd16ce0dd8e3f95.zip | |
[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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
