Skip to content
Commit 9842727d authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt
Browse files

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: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 9ee07f91
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment