mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stelian Pop <stelian.pop@fr.alcove.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>
Subject: [BKPATCH 2.4] sonypi driver: off-by-one bug in parameter passing.
Date: Wed, 17 Apr 2002 17:54:00 +0200	[thread overview]
Message-ID: <20020417155400.GD1519@come.alcove-fr> (raw)

Hi,

This patch fixes a trivial off-by-one bug which could corrupt
memory when arguments are passed to the sonypi driver on the
kernel command line.

Marcelo, please apply.

Stelian.


You can import this changeset into BK by piping this whole message to
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


ChangeSet@1.419, 2002-04-17 16:04:55+02:00, stelian@popies.net
  fix an off by one bug in command line parameter parsing


 sonypi.c |    2 +-
 sonypi.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/char/sonypi.c b/drivers/char/sonypi.c
--- a/drivers/char/sonypi.c	Wed Apr 17 16:06:16 2002
+++ b/drivers/char/sonypi.c	Wed Apr 17 16:06:16 2002
@@ -779,7 +779,7 @@
 
 #ifndef MODULE
 static int __init sonypi_setup(char *str)  {
-	int ints[6];
+	int ints[7];
 
 	str = get_options(str, ARRAY_SIZE(ints), ints);
 	if (ints[0] <= 0) 
diff -Nru a/drivers/char/sonypi.h b/drivers/char/sonypi.h
--- a/drivers/char/sonypi.h	Wed Apr 17 16:06:16 2002
+++ b/drivers/char/sonypi.h	Wed Apr 17 16:06:16 2002
@@ -35,7 +35,7 @@
 #ifdef __KERNEL__
 
 #define SONYPI_DRIVER_MAJORVERSION	 1
-#define SONYPI_DRIVER_MINORVERSION	11
+#define SONYPI_DRIVER_MINORVERSION	12
 
 #include <linux/types.h>
 #include <linux/pci.h>

===================================================================


This BitKeeper patch contains the following changesets:
+
## Wrapped with gzip_uu ##


begin 664 bkpatch14806
M'XL(`%B!O3P``]U586O;,!3\;/V*!_E88DNR+#D>&=V:LH5N27#H8(Q15%N.
M31,YV$K7@'_\Y&0TT&0A#1N,V<86#^E\[^YD=^"V5E7DU$;-"ZE1!SZ6M8F<
M9;DL5.UJ96PI+DM;\O)RH3Q3Z*)<>0^JTFKNS0N]>NI2ER$[;2)-DL.CJNK(
M(:[_7#'KI8J<^/K#[:=W,4+]/ESE4L_45!GH]Y$IJT<Y3^M+:?)YJ5U325TO
ME)%N4BZ:YZD-Q9C:,R#"QP%O",=,-`E)"9&,J!13%G*&?C5RN6O@)00C@OA!
M+PB:`#.,T0"(RT@/,/4P\X@`PB/,HB"XP#3"&/81X8)"%Z/W\&>I7Z$$LN()
MI(8RR^!^#:56<+^:0:'!`BZD3L$JKF`I*VE?HZIV5!=ZAF[`-D,XFNRT1=U7
M'@AAB=%;BVE=.]Q26A6MOUZ2R\JK2[U>%FZR:Z]'L$\:*S#CC1_@+!0B9)B%
M81+P`SH>@VM=LDL#VA#&??%Z6OD^K;`G&I\G/2981H7(.$G%J;3RE[08XT)L
MTGRPBS;9?T?(0Q$_)J1%(IA1OA&2;^*^'W9Z).P$NN0?"_LV$V/H5C\VEPWO
MY+`/9^R"@0@I$#3</IQ"&\O)U-_$]S>_]3L_P^\3$WJJW_E+O]N$_B=^;S?;
M"7[GY_CMAZW=FWLG55E+8CH>?9T,[P;Q\,MU?/=Y.!K'=C`=CD<.H;N?79*K
5Y*%>+?HL3)7],*3H)YR)C>]1!P``
`
end
-- 
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com

                 reply	other threads:[~2002-04-17 15:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020417155400.GD1519@come.alcove-fr \
    --to=stelian.pop@fr.alcove.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®