[PATCH] ppc32: Fix use of uninitialized pointer in offb

From: Benjamin Herrenschmidt
Date: Thu Sep 23 2004 - 19:43:21 EST


Hi !

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

Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>

===== drivers/video/offb.c 1.32 vs edited =====
--- 1.32/drivers/video/offb.c 2004-09-23 17:36:23 +10:00
+++ edited/drivers/video/offb.c 2004-09-24 10:29:23 +10:00
@@ -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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/