[PATCH] fix DMI onboard device discovery
authorAndrey Panin <pazke@donpac.ru>
Sat, 25 Mar 2006 11:06:31 +0000 (03:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:48 +0000 (08:22 -0800)
commitbc83455bc8336f57cd74d6e86b0f8fcad187d179
treefe0a425d375ee880179685b2156a8a22e9a222b0
parentb2fd16b4ff2508ac16ae994f4bcd941f97754c00
[PATCH] fix DMI onboard device discovery

Attached patch fixes invalid pointer arithmetic in DMI code to make onboard
device discovery working again.

akpm: bug has been present since dmi_find_device() was added in 2.6.14.
Affects ipmi only (I think) - the symptoms weren't described.

akpm: changed to use pointer arithmetic rather than open-coded sizeof.

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Cc: Corey Minyard <minyard@acm.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/dmi_scan.c