diff options
Diffstat (limited to 'sound/oss/dmasound/tas3001c.c')
-rw-r--r-- | sound/oss/dmasound/tas3001c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/dmasound/tas3001c.c b/sound/oss/dmasound/tas3001c.c index 2f21a3c00374..4b7dbdd2a438 100644 --- a/sound/oss/dmasound/tas3001c.c +++ b/sound/oss/dmasound/tas3001c.c | |||
@@ -807,10 +807,9 @@ tas3001c_init(struct i2c_client *client) | |||
807 | size_t sz = sizeof(*self) + (TAS3001C_REG_MAX*sizeof(tas_shadow_t)); | 807 | size_t sz = sizeof(*self) + (TAS3001C_REG_MAX*sizeof(tas_shadow_t)); |
808 | int i, j; | 808 | int i, j; |
809 | 809 | ||
810 | self = kmalloc(sz, GFP_KERNEL); | 810 | self = kzalloc(sz, GFP_KERNEL); |
811 | if (!self) | 811 | if (!self) |
812 | return -ENOMEM; | 812 | return -ENOMEM; |
813 | memset(self, 0, sz); | ||
814 | 813 | ||
815 | self->super.client = client; | 814 | self->super.client = client; |
816 | self->super.shadow = (tas_shadow_t *)(self+1); | 815 | self->super.shadow = (tas_shadow_t *)(self+1); |