]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] m68k: completely initialize hw_regs_t in ide_setup_ports
authorRoman Zippel <zippel@linux-m68k.org>
Fri, 23 Jun 2006 09:04:51 +0000 (02:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:43:00 +0000 (07:43 -0700)
commit2c3e0262e0cb5395fe02cdf27c229ee7414ab0c0
treed375b705880fc70b8dc5029b81b697936f1bbce7
parentdaacf8bc0dd37a6ad3a87d1a667599e15940815e
[PATCH] m68k: completely initialize hw_regs_t in ide_setup_ports

ide_setup_ports does not completely initialize the hw_regs_t structure which
can cause random failures, as the structure is often on the stack.  None of
the callers expect a partially initialized structure, i.e.  none of them do
any setup of their own before calling ide_setup_ports().

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/ide.c
drivers/ide/legacy/q40ide.c