lkml.org 
[lkml]   [1999]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[uPATCH] 2.3.28 possible use of uninitialized value
This prevents a silly compiler warning about nsems getting used
uninitialized... since the possible use in ipc_free at line 625 is
protected by a condition that can't happen in the one case where nsems
isn't initialized (at line 505), this is more about the compiler not
noticing this than anything else, but it clears a warning nonetheless
(egcs 1.1.2)

James

--- linux/ipc/sem.c.orig Mon Nov 15 19:12:54 1999
+++ linux/ipc/sem.c Mon Nov 15 19:13:00 1999
@@ -488,7 +488,7 @@
int err;
ushort fast_sem_io[SEMMSL_FAST];
ushort* sem_io = fast_sem_io;
- int nsems;
+ int nsems = 0;

sma = sem_lock(semid);
if(sma==NULL)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.181 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site