From: Andrey Panin <pazke@donpac.ru>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] fix DMI onboard device discovery
Date: Thu, 23 Mar 2006 16:29:03 +0300 [thread overview]
Message-ID: <20060323132903.GB8403@pazke> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 289 bytes --]
Hello,
attached patch fixes invalid pointer arithmetic in DMI code to
make onboard device discovery working again. Tested and works.
Please consider applying.
Best regards.
--
Andrey Panin | Linux and UNIX system administrator
pazke@donpac.ru | PGP key: wwwkeys.pgp.net
[-- Attachment #1.2: patch-dmi-fix --]
[-- Type: text/plain, Size: 711 bytes --]
Signed-off-by: Andrey Panin <pazke@donpac.ru>
dmi_scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -urdpNX /usr/share/dontdiff linux-2.6.16.vanilla/arch/i386/kernel/dmi_scan.c linux-2.6.16/arch/i386/kernel/dmi_scan.c
--- linux-2.6.16.vanilla/arch/i386/kernel/dmi_scan.c 2006-03-22 21:07:32.000000000 +0300
+++ linux-2.6.16/arch/i386/kernel/dmi_scan.c 2006-03-22 21:11:32.775227680 +0300
@@ -106,7 +106,7 @@ static void __init dmi_save_devices(stru
struct dmi_device *dev;
for (i = 0; i < count; i++) {
- char *d = ((char *) dm) + (i * 2);
+ char *d = ((char *) dm) + sizeof(struct dmi_header) + (i * 2);
/* Skip disabled device */
if ((*d & 0x80) == 0)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
reply other threads:[~2006-03-23 13:29 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=20060323132903.GB8403@pazke \
--to=pazke@donpac.ru \
--cc=linux-kernel@vger.kernel.org \
/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