diff options
Diffstat (limited to 'drivers/media/video/msp3400-driver.c')
-rw-r--r-- | drivers/media/video/msp3400-driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/msp3400-driver.c b/drivers/media/video/msp3400-driver.c index 507b1d4260ed..11cfcf18ec34 100644 --- a/drivers/media/video/msp3400-driver.c +++ b/drivers/media/video/msp3400-driver.c | |||
@@ -812,10 +812,9 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind) | |||
812 | int msp_product, msp_prod_hi, msp_prod_lo; | 812 | int msp_product, msp_prod_hi, msp_prod_lo; |
813 | int msp_rom; | 813 | int msp_rom; |
814 | 814 | ||
815 | client = kmalloc(sizeof(*client), GFP_KERNEL); | 815 | client = kzalloc(sizeof(*client), GFP_KERNEL); |
816 | if (client == NULL) | 816 | if (client == NULL) |
817 | return -ENOMEM; | 817 | return -ENOMEM; |
818 | memset(client, 0, sizeof(*client)); | ||
819 | client->addr = address; | 818 | client->addr = address; |
820 | client->adapter = adapter; | 819 | client->adapter = adapter; |
821 | client->driver = &i2c_driver; | 820 | client->driver = &i2c_driver; |