|
@@ -1069,13 +1069,13 @@ static struct dvb_frontend_ops cx24123_ops;
|
|
struct dvb_frontend *cx24123_attach(const struct cx24123_config *config,
|
|
struct dvb_frontend *cx24123_attach(const struct cx24123_config *config,
|
|
struct i2c_adapter *i2c)
|
|
struct i2c_adapter *i2c)
|
|
{
|
|
{
|
|
|
|
+ /* allocate memory for the internal state */
|
|
struct cx24123_state *state =
|
|
struct cx24123_state *state =
|
|
kzalloc(sizeof(struct cx24123_state), GFP_KERNEL);
|
|
kzalloc(sizeof(struct cx24123_state), GFP_KERNEL);
|
|
|
|
|
|
dprintk("\n");
|
|
dprintk("\n");
|
|
- /* allocate memory for the internal state */
|
|
|
|
if (state == NULL) {
|
|
if (state == NULL) {
|
|
- err("Unable to kmalloc\n");
|
|
|
|
|
|
+ err("Unable to kzalloc\n");
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
|
|
|