[PATCH] Can't open CDROM device for writing

From: Peter Osterlund
Date: Thu Jul 01 2004 - 06:36:38 EST


Opening a CDROM device for writing no longer works, because
cdrom_open() returns -EROFS even if cdrom_open_write() succeeds. This
patch for 2.6.7-bk13 fixes it.

Signed-off-by: Peter Osterlund <petero2@xxxxxxxxx>

---

linux-petero/drivers/cdrom/cdrom.c | 1 +
1 files changed, 1 insertion(+)

diff -puN drivers/cdrom/cdrom.c~cdrom-write-fix drivers/cdrom/cdrom.c
--- linux/drivers/cdrom/cdrom.c~cdrom-write-fix 2004-07-01 13:16:27.772595136 +0200
+++ linux-petero/drivers/cdrom/cdrom.c 2004-07-01 13:17:34.380469200 +0200
@@ -901,6 +901,7 @@ int cdrom_open(struct cdrom_device_info
goto err;
if (cdrom_open_write(cdi))
goto err;
+ ret = 0;
}
}

_

--
Peter Osterlund - petero2@xxxxxxxxx
http://w1.894.telia.com/~u89404340
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/