]> err.no Git - linux-2.6/commit
ide/powermac: Fix use of uninitialized pointer on media-bay
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2008 01:29:56 +0000 (11:29 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Jul 2008 05:26:53 +0000 (15:26 +1000)
commit9842727da7d95d8249087148048cc571f967c023
tree0143e3f805a25c72a3f1d7301270720414d139c2
parent9ee07f91a1fab61ff0d8d25be43351a049c0a821
ide/powermac: Fix use of uninitialized pointer on media-bay

The current ide-pmac calls media_bay_set_ide_infos() with an
uninitialized "hwif" argument. The proper fix is to split the
allocation of the hwif from its registration in order to properly
setup the mediabay informations before registration.

Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/ide/ppc/pmac.c