state = (struct sp887x_state*) kmalloc(sizeof(struct sp887x_state), GFP_KERNEL); 
state = kmalloc(sizeof(struct sp887x_state), GFP_KERNEL); 
struct dvb_frontend* sp887x_attach(const struct sp887x_config* config,				   struct i2c_adapter* i2c){	struct sp887x_state* state = NULL;	/* allocate memory for the internal state */	state = (struct sp887x_state*) kmalloc(sizeof(struct sp887x_state), GFP_KERNEL);	if (state == NULL) goto error;	/* setup the state */	state->config = config;	state->i2c = i2c;	memcpy(&state->ops, &sp887x_ops, sizeof(struct dvb_frontend_ops));	state->initialised = 0;	/* check if the demod is there */	if (sp887x_readreg(state, 0x0200) < 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/sp887x.c/buggy/drivers/media/dvb/frontends/sp887x.c