linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: ide-disk: don't validate non LBA info when there is no geometry
@ 2004-11-05 16:25 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2004-11-05 16:25 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz, linux-ide

diff --exclude-from /usr/src/exclude -u --new-file --recursive linux.vanilla-2.6.10rc1/drivers/ide/ide-disk.c linux-2.6.10rc1/drivers/ide/ide-disk.c
--- linux.vanilla-2.6.10rc1/drivers/ide/ide-disk.c	2004-11-05 15:42:15.000000000 +0000
+++ linux-2.6.10rc1/drivers/ide/ide-disk.c	2004-11-05 16:07:19.000000000 +0000
@@ -84,6 +84,10 @@
 {
 	unsigned long lba_sects, chs_sects, head, tail;
 
+	/* No non-LBA info .. so valid! */
+	if (id->cyls == 0)
+		return 1;
+		
 	/*
 	 * The ATA spec tells large drives to return
 	 * C/H/S = 16383/16/63 independent of their size.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-05 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-05 16:25 PATCH: ide-disk: don't validate non LBA info when there is no geometry Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).