android_kernel_xiaomi_sm8350/drivers
Jens Axboe 16070428d3 [PATCH] fix cdrom open
Some time ago the cdrom open routine was changed so that we call the
driver's open routine before checking to see if it is read only.  However,
if we discovered that a read write open was not possible and the open
flags required a writable open, we just returned -EROFS without calling
the driver's release routine.   This seems to work for most cdrom drivers,
but breaks the Powerpc iSeries virtual cdrom rather badly.

This just inserts the release call in the error path to balance the call
to "->open()" done by "open_for_data()".

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-17 10:44:26 -07:00
..
acorn
acpi [PATCH] powernow-k8 crash workaround 2006-06-10 11:02:05 -07:00
amba
atm
base [PATCH] revert "swsusp add check for suspension of X controlled devices" 2006-05-31 16:27:11 -07:00
block [PATCH] USB: ub oops in block_uevent 2006-05-08 23:43:55 -07:00
bluetooth
cdrom [PATCH] fix cdrom open 2006-06-17 10:44:26 -07:00
char [PATCH] Fix for the PPTP hangs that have been reported 2006-06-11 20:40:39 -07:00
connector
cpufreq [PATCH] x86_64: Move ondemand timer into own work queue 2006-05-08 09:34:56 -07:00
crypto
dio
edac [PATCH] EDAC Coexistence with BIOS 2006-05-03 20:05:41 -07:00
eisa
fc4
firmware
hwmon
i2c [PATCH] scx200_acb: fix section mismatch warning 2006-05-26 11:55:46 -07:00
ide [PATCH] sgiioc4: use mmio ops instead of port io 2006-05-31 16:27:11 -07:00
ieee1394 [PATCH] sbp2: fix check of return value of hpsb_allocate_and_register_addrspace() 2006-06-05 12:29:16 -07:00
infiniband IPoIB: Fix AH leak at interface down 2006-06-05 09:51:36 -07:00
input Input: psmouse - DMI updates for lifebook protocol 2006-05-29 23:31:12 -04:00
isdn [PATCH] Overrun in isdn_tty.c 2006-05-21 12:59:18 -07:00
leds [PATCH] LED: Fix sysfs store function error handling 2006-05-15 11:20:56 -07:00
macintosh
mca
md [PATCH] md: Fix badness in sysfs_notify caused by md_new_event 2006-05-31 16:27:11 -07:00
media [PATCH] V4L/DVB (4045): Fixes recursive dependency for I2C 2006-05-24 18:48:28 -07:00
message Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 2006-06-10 11:03:51 -07:00
mfd
misc
mmc [MMC] Prevent au1xmmc.c breakage on non-Au1200 Alchemy 2006-06-04 17:40:58 +01:00
mtd
net [PATCH] sky2: stop/start hardware idle timer on suspend/resume 2006-06-13 13:16:41 -07:00
nubus
oprofile
parisc
parport
pci [PATCH] PCI: reverse pci config space restore order 2006-06-11 14:02:27 -07:00
pcmcia [PATCH] pcmcia: missing pcmcia_get_socket() result check 2006-06-02 00:56:17 +02:00
pnp
rapidio
rtc [PATCH] m48t86: ia64 build fix 2006-06-05 12:29:17 -07:00
s390 [PATCH] s390: cio non-unique path group ids 2006-06-05 12:29:16 -07:00
sbus [SPARC]: Fix warning on prom_getproperty in openprom.c 2006-05-12 12:53:59 -07:00
scsi [PATCH] sata_mv: grab host lock inside eng_timeout 2006-06-11 23:03:18 -04:00
serial [PATCH] ppc32 CPM_UART: various fixes for pq2 uart users 2006-05-26 22:38:56 +10:00
sh
sn [PATCH] Altix: correct ioc4 port order 2006-05-03 20:05:41 -07:00
spi [PATCH] s3c24xx: fix spi driver with CONFIG_PM 2006-05-26 11:55:46 -07:00
tc
telephony
usb [ARM] 3547/1: PXA-OHCI: Allow platforms to specify a power budget 2006-06-08 22:44:07 +01:00
video [PATCH] fbcon: fix limited scroll in SCROLL_PAN_REDRAW mode 2006-06-08 15:12:21 -07:00
w1
zorro
Kconfig
Makefile