--- libata-core.c~ 2008-05-16 19:22:04.000000000 +0100 +++ libata-core.c 2008-05-16 19:08:42.000000000 +0100 @@ -1243,13 +1243,14 @@ "HPA detected: current %llu, native %llu\n", (unsigned long long)sectors, (unsigned long long)native_sectors); - else if (native_sectors < sectors) + else if (native_sectors < sectors) { ata_dev_printk(dev, KERN_WARNING, "native sectors (%llu) is smaller than " "sectors (%llu)\n", (unsigned long long)native_sectors, (unsigned long long)sectors); - return 0; + return 0; + } } /* let's unlock HPA */