state = (struct nxt2002_state*) kmalloc(sizeof(struct nxt2002_state), GFP_KERNEL); 
state = kmalloc(sizeof(struct nxt2002_state), GFP_KERNEL); 
struct dvb_frontend* nxt2002_attach(const struct nxt2002_config* config,				   struct i2c_adapter* i2c){	struct nxt2002_state* state = NULL;	u8 buf [] = {0,0,0,0,0};	/* allocate memory for the internal state */	state = (struct nxt2002_state*) kmalloc(sizeof(struct nxt2002_state), GFP_KERNEL);	if (state == NULL) goto error;	/* setup the state */	state->config = config;	state->i2c = i2c;	memcpy(&state->ops, &nxt2002_ops, sizeof(struct dvb_frontend_ops));	state->initialised = 0;        /* Check the first 5 registers to ensure this a revision we can handle */	i2c_readbytes(state, 0x00, buf, 5);	if (buf[0] != 0x04) goto error;		/* device id */	if (buf[1] != 0x02) goto error;		/* fab id */	if (buf[2] != 0x11) goto error;		/* month */	if (buf[3] != 0x20) goto error;		/* year msb */	if (buf[4] != 0x00) goto error;		/* year lsb */	/* 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/nxt2002.c/buggy/drivers/media/dvb/frontends/nxt2002.c