ahci: use malloc_tmp memory for probing ports
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 4 Aug 2011 17:36:31 +0000 (19:36 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 6 Aug 2011 17:57:53 +0000 (13:57 -0400)
commitef8adc0220b6072289ac4640b168acfccaf19867
treeca403113d66e6a9d764b02f85946cdce4cf0b164
parent2dcbf7fafc15acb62adbceaae7ca3a6e3a06f0e3
ahci: use malloc_tmp memory for probing ports

Also allocate the ahci port struct itself from tmp memory for probing,
then copy to fseg memory in case we detected some device.  This way we
don't waste fseg memory for unused ports.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/ahci.c