]> err.no Git - linux-2.6/commitdiff
[IA64] 'msg' may be used uninitialized in xpc_initiate_allocate()
authorTony Luck <tony.luck@intel.com>
Tue, 4 Apr 2006 21:11:49 +0000 (14:11 -0700)
committerTony Luck <tony.luck@intel.com>
Tue, 4 Apr 2006 21:11:49 +0000 (14:11 -0700)
Found by gcc4.1 and reported by Dean Nelson.

Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/xpc_channel.c

index d0abddd9ffe682c8dc4d566c6619a33b180567a7..8255a9be4632adbc325bc96643208ea1a04b8fa6 100644 (file)
@@ -1831,7 +1831,7 @@ xpc_initiate_allocate(partid_t partid, int ch_number, u32 flags, void **payload)
 {
        struct xpc_partition *part = &xpc_partitions[partid];
        enum xpc_retval ret = xpcUnknownReason;
-       struct xpc_msg *msg;
+       struct xpc_msg *msg = NULL;
 
 
        DBUG_ON(partid <= 0 || partid >= XP_MAX_PARTITIONS);