 if (copy_to_user((struct ca_caps *)arg, p_ca_caps, sizeof (struct ca_caps))) { 
if (copy_to_user((struct ca_caps *)arg, p_ca_caps, sizeof (struct ca_caps))) 
static int ca_get_slot_caps(struct dst_state *state, struct ca_caps *p_ca_caps, void *arg){	int i;	u8 slot_cap[256];	static u8 slot_command[8] = {0x07, 0x40, 0x02, 0x00, 0x02, 0x00, 0x00, 0xff};	put_checksum(&slot_command[0], slot_command[0]);	if ((dst_put_ci(state, slot_command, sizeof (slot_command), slot_cap, GET_REPLY)) < 0) {		dprintk("%s: -->dst_put_ci FAILED !\n", __FUNCTION__);		return -1;	}	if (verbose > 1)		dprintk("%s: -->dst_put_ci SUCCESS !\n", __FUNCTION__);	/*	Will implement the rest soon		*/	if (verbose > 1) {		dprintk("%s: Slot cap = [%d]\n", __FUNCTION__, slot_cap[7]);		dprintk("===================================\n");		for (i = 0; i < 8; i++)			dprintk(" %d", slot_cap[i]);		dprintk("\n");	}	p_ca_caps->slot_num = 1;	p_ca_caps->slot_type = 1;	p_ca_caps->descr_num = slot_cap[7];	p_ca_caps->descr_type = 1;	if (copy_to_user((struct ca_caps *)arg, p_ca_caps, sizeof (struct ca_caps))) {		return -EFAULT;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a427de6f72bc0d83ebb1d87f9003c5e1009f21cd/dst_ca.c/buggy/drivers/media/dvb/bt8xx/dst_ca.c