state = (struct cx22700_state*) kmalloc(sizeof(struct cx22700_state), GFP_KERNEL); 
state = kmalloc(sizeof(struct cx22700_state), GFP_KERNEL); 
struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,				    struct i2c_adapter* i2c){	struct cx22700_state* state = NULL;	/* allocate memory for the internal state */	state = (struct cx22700_state*) kmalloc(sizeof(struct cx22700_state), GFP_KERNEL);	if (state == NULL) goto error;	/* setup the state */	state->config = config;	state->i2c = i2c;	memcpy(&state->ops, &cx22700_ops, sizeof(struct dvb_frontend_ops));	/* check if the demod is there */	if (cx22700_readreg(state, 0x07) < 0) goto error;	/* create dvb_frontend */	state->frontend.ops = &state->ops;	state->frontend.demodulator_priv = state;	return &state->frontend;error:	kfree(state);	return NULL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b8742700f13163ffa00cddce2a3c940b9ab2ab5a/cx22700.c/buggy/drivers/media/dvb/frontends/cx22700.c