patch-2.2.19 linux/drivers/block/ide-pmac.c

Next file: linux/drivers/block/ll_rw_blk.c
Previous file: linux/drivers/block/hd.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/block/ide-pmac.c linux/drivers/block/ide-pmac.c
@@ -905,7 +905,8 @@
 	 * Problem: This can schedule. I moved the block device
 	 * wakeup almost late by priority because of that.
 	 */
-	DRIVER(drive)->media_change(drive);
+	if (DRIVER(drive))
+		DRIVER(drive)->media_change(drive);
 
 	/* We kick the VFS too (see fix in ide.c revalidate) */
 	check_disk_change(MKDEV(HWIF(drive)->major, (drive->select.b.unit) << PARTN_BITS));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)