public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Patch for strncmp use in s390 in 2.5
@ 2003-05-28 20:20 Pete Zaitcev
  2003-05-28 20:34 ` Richard B. Johnson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pete Zaitcev @ 2003-05-28 20:20 UTC (permalink / raw)
  To: linux390; +Cc: Pete Zaitcev, James Antill, linux-kernel

Martin & others:

I didn't see this posted before. Sorry if I missed it.
It's a harmless buglet which causes false positives with correctness
checking tools, and so annoys me.

Cheers,
-- Pete

--- linux-2.5.69-bk12/arch/s390/kernel/setup.c	2003-05-11 12:56:15.000000000 -0700
+++ linux-2.5.69-bk12-s390/arch/s390/kernel/setup.c	2003-05-28 13:01:54.000000000 -0700
@@ -165,15 +165,15 @@
 static int __init conmode_setup(char *str)
 {
 #if defined(CONFIG_SCLP_CONSOLE)
-	if (strncmp(str, "hwc", 4) == 0 || strncmp(str, "sclp", 5) == 0)
+	if (strncmp(str, "hwc", 3) == 0 || strncmp(str, "sclp", 4) == 0)
                 SET_CONSOLE_SCLP;
 #endif
 #if defined(CONFIG_TN3215_CONSOLE)
-	if (strncmp(str, "3215", 5) == 0)
+	if (strncmp(str, "3215", 4) == 0)
 		SET_CONSOLE_3215;
 #endif
 #if defined(CONFIG_TN3270_CONSOLE)
-	if (strncmp(str, "3270", 5) == 0)
+	if (strncmp(str, "3270", 4) == 0)
 		SET_CONSOLE_3270;
 #endif
         return 1;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-28 23:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-28 20:20 Patch for strncmp use in s390 in 2.5 Pete Zaitcev
2003-05-28 20:34 ` Richard B. Johnson
2003-05-28 20:51 ` Patch for strncmp use in s390 (sclp) Pete Zaitcev
2003-05-28 21:55 ` Patch for strncmp use in s390 in 2.5 Richard Braakman
     [not found] ` <mailman.1054159021.10246.linux-kernel2news@redhat.com>
2003-05-28 23:45   ` Pete Zaitcev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox