if (dinfo->accel) 
if (ACCEL(dinfo, info)) 
intelfb_set_par(struct fb_info *info){ 	struct intelfb_hwstate *hw;        struct intelfb_info *dinfo = GET_DINFO(info);	if (FIXED_MODE(dinfo)) {		ERR_MSG("Changing the video mode is not supported.\n");		return -EINVAL;	} 	hw = kmalloc(sizeof(*hw), GFP_ATOMIC); 	if (!hw) 		return -ENOMEM;	DBG_MSG("intelfb_set_par (%dx%d-%d)\n", info->var.xres,		info->var.yres, info->var.bits_per_pixel);	intelfb_blank(FB_BLANK_POWERDOWN, info);	if (dinfo->accel)		intelfbhw_2d_stop(dinfo); 	memcpy(hw, &dinfo->save_state, sizeof(*hw)); 	if (intelfbhw_mode_to_hw(dinfo, hw, &info->var)) 		goto invalid_mode; 	if (intelfbhw_program_mode(dinfo, hw, 0)) 		goto invalid_mode;#if REGDUMP > 0 	intelfbhw_read_hw_state(dinfo, hw, 0); 	intelfbhw_print_hw_state(dinfo, hw);#endif	update_dinfo(dinfo, &info->var);	if (dinfo->accel)		intelfbhw_2d_start(dinfo);	intelfb_pan_display(&info->var, info);	intelfb_blank(FB_BLANK_UNBLANK, info);	if (ACCEL(dinfo, info)) {		info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN |		FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT |		FBINFO_HWACCEL_IMAGEBLIT;	} else {		info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;	}	kfree(hw);	return 0;invalid_mode:	kfree(hw);	return -EINVAL;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/df529338d9c5d9329e503955795c89472e1ba6e6/intelfbdrv.c/buggy/drivers/video/intelfb/intelfbdrv.c