From: Lars Aronsson <lars@aronsson.se>
To: linux-kernel@vger.kernel.org
Subject: Oops in dmi_table() from Linux 2.4.7
Date: Thu, 2 Aug 2001 17:16:40 +0200 [thread overview]
Message-ID: <200108021516.f72FGeT00741@levi.aronsson.se> (raw)
Hi guys, it's me again,
My previously reported problem has its roots here:
Linux 2.4.7
file arch/i386/kernel/dmi_scan.c
function dmi_table()
the if() statement for breaking out of the loop.
What happened on my hardware is that dm->type == 255 (this happens the
very first time these statements are executed), which I guess
indicates that there are no DMI data on my hardware/BIOS. The type of
dm->type is u8, which means the loop is not broken. I have no idea
about the DMI specs, so I don't know how other values of dm->type
should be interpreted. The function dmi_decode() only uses 0,1,2,3.
A simple cast to signed char fixed the problem for me:
if (((signed char)dm->type) < last) break;
Again, my hardware is a Toshiba Portege 7020CT. I think I did some
BIOS update when I first installed support for the Dock II docking
station, but I won't care to dig up bios version info unless you say
you need it.
Again, hope you can use this.
Lars Aronsson.
--
Aronsson Datateknik
Teknikringen 1e tel +46-70-7891609 lars@aronsson.se
SE-583 30 Linköping, Sweden fax +46-13-211820 http://aronsson.se
next reply other threads:[~2001-08-02 15:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-02 15:16 Lars Aronsson [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-08-02 11:57 Lars Aronsson
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=200108021516.f72FGeT00741@levi.aronsson.se \
--to=lars@aronsson.se \
--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
all inboxes | Powered by JetHome®