Skip to contentSkip to conversation

ppc32: Fix use of uninitialized pointer in offb

PATCH New Benjamin Herrenschmidt 1 participant 1 message Sep 24, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32: Fix use of uninitialized pointer in offb

Hi !

The recent ppc64 changes for offb introduced an uninitialized pointer use for ppc32, here's the fix:

===== drivers/video/offb.c 1.32 vs edited =====

drivers/video/offb.c +1 -1
@@ -246,7 +246,7 @@
 
 int __init offb_init(void)
 {
-	struct device_node *dp, *boot_disp = NULL;
+	struct device_node *dp = NULL, *boot_disp = NULL;
 #if defined(CONFIG_BOOTX_TEXT) && defined(CONFIG_PPC32)
 	struct device_node *macos_display = NULL;
 #endif