mode_t mode = S_IRUSR; 
mode_t mode = S_IRUSR | S_IRGRP | S_IROTH; 
int __init lparcfg_init(void){	struct proc_dir_entry *ent;	mode_t mode = S_IRUSR;	/* Allow writing if we have FW_FEATURE_SPLPAR */	if (firmware_has_feature(FW_FEATURE_SPLPAR)) {		lparcfg_fops.write = lparcfg_write;		mode |= S_IWUSR;	}	ent = create_proc_entry("ppc64/lparcfg", mode, NULL);	if (ent) {		ent->proc_fops = &lparcfg_fops;		ent->data = kmalloc(LPARCFG_BUFF_SIZE, GFP_KERNEL);		if (!ent->data) {			printk(KERN_ERR			       "Failed to allocate buffer for lparcfg\n");			remove_proc_entry("lparcfg", ent->parent);			return -ENOMEM;		}	} else {		printk(KERN_ERR "Failed to create ppc64/lparcfg\n");		return -EIO;	}	proc_ppc64_lparcfg = ent;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/71839267f2554d76bb0862cdd0181a60bd0f4970/lparcfg.c/buggy/arch/ppc64/kernel/lparcfg.c