Blob Blame History Raw
diff --color -u hdparm-9.54.orig/identify.c hdparm-9.54/identify.c
--- hdparm-9.54.orig/identify.c	2016-10-17 11:06:28.000000001 -0700
+++ hdparm-9.54/identify.c	2021-04-28 06:19:01.005819050 -0700
@@ -1488,7 +1488,7 @@
 	else if (dco[2] & (1<<0)) printf(" udma0");
 	putchar('\n');
 
-	lba = ((((__u64)dco[5]) << 32) | (dco[4] << 16) | dco[3]) + 1;
+	lba = ((((__u64)dco[5]) << 32) | ((__u64)dco[4] << 16) |(__u64)dco[3]) + 1U;
 	printf("\tReal max sectors: %llu\n", lba);
 
 	printf("\tATA command/feature sets:");