WSL2-Linux-Kernel/drivers/cdrom
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
..
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
aztcd.c [PATCH] Overrun in cdrom/aztcd.c 2006-04-11 06:18:46 -07:00
aztcd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cdrom.c [PATCH] fix cdrom open 2006-06-17 10:44:26 -07:00
cdu31a.c [PATCH] kill cdrom ->dev_ioctl method 2006-03-23 07:38:09 -08:00
cdu31a.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cm206.c [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
cm206.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gscd.c [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
gscd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
isp16.c [PATCH] Update CREDITS entry and listings in source files for Jesper Juhl 2005-07-27 16:26:20 -07:00
isp16.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mcdx.c [PATCH] drivers/cdrom: kmalloc + memset -> kzalloc conversion 2005-11-07 07:53:59 -08:00
mcdx.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
optcd.c [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
optcd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sbpcd.c [PATCH] Remove MODULE_PARM 2006-03-25 08:22:52 -08:00
sbpcd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sjcd.c [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
sjcd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sonycd535.c [PATCH] drivers/cdrom: fix-up schedule_timeout() usage 2005-09-10 10:06:38 -07:00
sonycd535.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
viocd.c [PATCH] kill cdrom ->dev_ioctl method 2006-03-23 07:38:09 -08:00