The attached patch fixes swap_type_of() for the case the suspend device is not the first swap device. This looks like a cut'n'paste fix. Patch is against 2.6.17.8. -- Andreas Steinmetz SPAMmers use robotrap@domdv.de