Blame SOURCES/hdparm-9.43-get_geom.patch

7a71a7
Index: hdparm-9.43/geom.c
7a71a7
===================================================================
7a71a7
--- hdparm-9.43.orig/geom.c
7a71a7
+++ hdparm-9.43/geom.c
7a71a7
@@ -201,7 +201,7 @@ int get_dev_geometry (int fd, __u32 *cyl
7a71a7
 			__u64 hs  = (*heads) * (*sects);
7a71a7
 			__u64 cyl = (*cyls);
7a71a7
 			__u64 chs = cyl * hs;
7a71a7
-			if (chs < (*nsectors))
7a71a7
+			if (chs < (*nsectors) && hs)
7a71a7
 				*cyls = (*nsectors) / hs;
7a71a7
 		}
7a71a7
 	}