HPA Problem in libata-core.c?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jeff,

Apologies if I'm way off-base here, but I was having problems unlocking a HPA and took a look at the above.

It seemed the code was bailing before it unlocked the HPA, but would appreciate your feedback.

Cheers,

Rich
--- 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 */

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux