summaryrefslogtreecommitdiffstats
path: root/target/device/AMD/DBAu1500/kernel-patches/028-cdrom_oexcl.patch
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-03-25 19:09:09 +0000
committerEric Andersen <andersen@codepoet.org>2006-03-25 19:09:09 +0000
commitba46d4d7caf5ec6c89fbbde4bb19a86a272c4611 (patch)
treead16141328c9251d4ce5461e63bb831c9806a140 /target/device/AMD/DBAu1500/kernel-patches/028-cdrom_oexcl.patch
parent7aa8096f080eb0bf8db862741e57a21285ab4c61 (diff)
downloadbuildroot-novena-ba46d4d7caf5ec6c89fbbde4bb19a86a272c4611.tar.gz
buildroot-novena-ba46d4d7caf5ec6c89fbbde4bb19a86a272c4611.zip
update to linux 2.4.16 and current uClibc.
Diffstat (limited to 'target/device/AMD/DBAu1500/kernel-patches/028-cdrom_oexcl.patch')
-rw-r--r--target/device/AMD/DBAu1500/kernel-patches/028-cdrom_oexcl.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/device/AMD/DBAu1500/kernel-patches/028-cdrom_oexcl.patch b/target/device/AMD/DBAu1500/kernel-patches/028-cdrom_oexcl.patch
new file mode 100644
index 000000000..577cdb0b4
--- /dev/null
+++ b/target/device/AMD/DBAu1500/kernel-patches/028-cdrom_oexcl.patch
@@ -0,0 +1,13 @@
+--- orig/drivers/cdrom/cdrom.c 2004-12-07 22:55:38.000000000 -0700
++++ linux-2.6.10-rc3/drivers/cdrom/cdrom.c 2004-12-07 22:55:38.000000000 -0700
+@@ -997,6 +997,10 @@
+
+ cdinfo(CD_OPEN, "entering cdrom_open\n");
+
++ /* If the device is opened O_EXCL but there are other openers, return busy */
++ if ( (fp->f_flags & O_EXCL) && (cdi->use_count>0) )
++ return -EBUSY;
++
+ /* if this was a O_NONBLOCK open and we should honor the flags,
+ * do a quick open without drive/disc integrity checks. */
+ cdi->use_count++;