linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.20-rc3] fix broken retval test in sr_block_ioctl
@ 2007-01-02 22:24 Mark Lord
  2007-01-02 22:30 ` Mark Lord
  2007-01-02 22:32 ` Jeff Garzik
  0 siblings, 2 replies; 11+ messages in thread
From: Mark Lord @ 2007-01-02 22:24 UTC (permalink / raw)
  To: Tejun Heo, Jeff Garzik, IDE/ATA development list, linux-scsi

With recent kernels (and possibly much older ones, too),
ioctl() calls for ATAPI devices never make it to the driver layers.

The reason for this is a borked return code test in drivers/scsi/sr.c.
This patch fixes it.

Signed-off-by:  Mark Lord <mlord@pobox.com>

---
--- old/drivers/scsi/sr.c	2006-11-29 16:57:37.000000000 -0500
+++ linux/drivers/scsi/sr.c	2007-01-02 16:40:33.000000000 -0500
@@ -468,7 +468,7 @@
 	}
 
 	ret = cdrom_ioctl(file, &cd->cdi, inode, cmd, arg);
-	if (ret != ENOSYS)
+	if (ret != -ENOSYS)
 		return ret;
 
 	/*

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-01-03  3:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-02 22:24 [PATCH 2.6.20-rc3] fix broken retval test in sr_block_ioctl Mark Lord
2007-01-02 22:30 ` Mark Lord
2007-01-02 22:32   ` [PATCH] Add ATA_12/ATA_16 support for libata ATAPI Mark Lord
2007-01-02 22:36     ` [PATCH] libata use ATA_12 in HDIO_* ioctls for ATAPI compatibility Mark Lord
2007-01-03  0:23       ` Mark Lord
2007-01-02 22:37   ` [PATCH 2.6.20-rc3] fix broken retval test in sr_block_ioctl Jeff Garzik
2007-01-02 22:52     ` Mark Lord
2007-01-02 23:12       ` Mark Lord
2007-01-03  3:36         ` Douglas Gilbert
2007-01-02 22:32 ` Jeff Garzik
2007-01-02 22:39   ` Mark Lord

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).