state = (struct ves1820_state*) kmalloc(sizeof(struct ves1820_state), GFP_KERNEL); 
state = kmalloc(sizeof(struct ves1820_state), GFP_KERNEL); 
struct dvb_frontend* ves1820_attach(const struct ves1820_config* config,				    struct i2c_adapter* i2c,				    u8 pwm){	struct ves1820_state* state = NULL;	/* allocate memory for the internal state */	state = (struct ves1820_state*) kmalloc(sizeof(struct ves1820_state), GFP_KERNEL);	if (state == NULL)		goto error;	/* setup the state */	memcpy(&state->ops, &ves1820_ops, sizeof(struct dvb_frontend_ops));	state->reg0 = ves1820_inittab[0];	state->config = config;	state->i2c = i2c;	state->pwm = pwm;	/* check if the demod is there */	if ((ves1820_readreg(state, 0x1a) & 0xf0) != 0x70)		goto error;	if (verbose)		printk("ves1820: pwm=0x%02x\n", state->pwm);	state->ops.info.symbol_rate_min = (state->config->xin / 2) / 64;      /* SACLK/64 == (XIN/2)/64 */	state->ops.info.symbol_rate_max = (state->config->xin / 2) / 4;       /* SACLK/4 */	/* 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/ves1820.c/buggy/drivers/media/dvb/frontends/ves1820.c