patch-1.3.45 linux/drivers/cdrom/optcd.c

Next file: linux/drivers/cdrom/sjcd.c
Previous file: linux/drivers/cdrom/mcd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.44/linux/drivers/cdrom/optcd.c linux/drivers/cdrom/optcd.c
@@ -998,7 +998,7 @@
 	opt_transfer_is_active = 1;
 	while (CURRENT_VALID) {
 		if (CURRENT->bh) {
-			if (!CURRENT->bh->b_lock)
+			if (!buffer_locked(CURRENT->bh))
 				panic(DEVICE_NAME ": block not locked");
 		}
 		opt_transfer();	/* First try to transfer block from buffers */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this