staging: xgifb: copy PCI ROM properly
authorAaro Koskinen <aaro.koskinen@iki.fi>
Thu, 17 Feb 2011 21:29:13 +0000 (23:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 20:38:17 +0000 (12:38 -0800)
commit0f07d945f490d1ba8ace3b943b2a2d13daf4c49a
tree2cef620aebec47ca4e5175e51dbcc95f8be701f9
parent6af8172043ddcebfcfc06a0921a10a858de45106
staging: xgifb: copy PCI ROM properly

Use proper helper functions to copy the PCI ROM. Also use dynamic memory
allocation. The original code mapped incorrect amount of memory and will
crash on some platforms.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/XGI_main_26.c