patch-2.2.18 linux/drivers/scsi/sr.c
Next file: linux/drivers/scsi/sr_ioctl.c
Previous file: linux/drivers/scsi/sg.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sat Nov 18 19:27:46 2000
- Orig file:
v2.2.17/drivers/scsi/sr.c
- Orig date:
Sun Jun 11 21:44:17 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/scsi/sr.c linux/drivers/scsi/sr.c
@@ -20,7 +20,7 @@
* Modified by Gerd Knorr <kraxel@cs.tu-berlin.de> to support the
* generic cdrom interface
*
- * Modified by Jens Axboe <axboe@image.dk> - Uniform sr_packet()
+ * Modified by Jens Axboe <axboe@suse.de> - Uniform sr_packet()
* interface, capabilities probe additions, ioctl cleanups, etc.
*
* Modified by Jens Axboe <axboe@suse.de> - support DVD-RAM
@@ -1213,6 +1213,8 @@
cpnt->device = NULL;
cpnt->capacity = 0;
SDp->attached--;
+ if (SDp->scsi_request_fn == do_sr_request)
+ SDp->scsi_request_fn = NULL;
sr_template.nr_dev--;
sr_template.dev_noticed--;
sr_sizes[i] = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)