diff options
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.patch | 13 |
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++; |