Commit d36a869e authored by Petr Cvek's avatar Petr Cvek Committed by Helge Deller

video: fbdev: intelfb: Initialize value of stolen size

Variable stolen_size can be left uninitialized in a code path with
INTEL_855_GMCH_GMS_DISABLED. Fix this by initializing the variable to 0.

Also fix indentation of function arguments.
Signed-off-by: default avatarPetr Cvek <petrcvekcz@gmail.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 25c9a15f
...@@ -472,7 +472,7 @@ static int intelfb_pci_register(struct pci_dev *pdev, ...@@ -472,7 +472,7 @@ static int intelfb_pci_register(struct pci_dev *pdev,
struct fb_info *info; struct fb_info *info;
struct intelfb_info *dinfo; struct intelfb_info *dinfo;
int i, err, dvo; int i, err, dvo;
int aperture_size, stolen_size; int aperture_size, stolen_size = 0;
struct agp_kern_info gtt_info; struct agp_kern_info gtt_info;
int agp_memtype; int agp_memtype;
const char *s; const char *s;
...@@ -571,7 +571,7 @@ static int intelfb_pci_register(struct pci_dev *pdev, ...@@ -571,7 +571,7 @@ static int intelfb_pci_register(struct pci_dev *pdev,
return -ENODEV; return -ENODEV;
} }
if (intelfbhw_get_memory(pdev, &aperture_size,&stolen_size)) { if (intelfbhw_get_memory(pdev, &aperture_size, &stolen_size)) {
cleanup(dinfo); cleanup(dinfo);
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment