]> git.neil.brown.name Git - history.git/commit
[PATCH] EDD: fix too short array
authorMatt Domsch <matt_domsch@dell.com>
Sat, 13 Nov 2004 03:23:32 +0000 (19:23 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 13 Nov 2004 03:23:32 +0000 (19:23 -0800)
commite45d557978b136ddc8f40656e8fe0be18d8f7a19
tree07af3bdb5592db5569cd67938e9eddf92934515e
parente939871562e9c127a931699df27a594d8b77ad83
[PATCH] EDD: fix too short array

Bingo...  edd_devices[] was too short.  When we keep more than 6
signatures, it overruns the end.  Also, I rewrote edd_num_devices to be
clearer about its goal.

This patch is necessary even after the last edd.S patch was reverted.

Thanks to Christian Kujau for testing and narrowing it down enough to
debug this.

It still doesn't explain why Christian's BIOS reports more devices than
he has, that's still up in the air, so don't re-apply the edd.S patch
just reverted.

Signed-off-by: Matt Domsch <Matt_Domsch@dell.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/firmware/edd.c