[PATCH] buglet fix for drivers/cdrom/sonycd535.c

Ken Pizzini (ken@halcyon.com)
Thu, 26 Aug 1999 17:43:11 -0700


The initialization code for the Sony cdu535 driver in 2.3.15
has a small scheduling bug; attached is a patch to fix it.
--Ken Pizzini

--- sonycd535.c-orig Thu Jan 7 08:46:59 1999
+++ sonycd535.c Wed Aug 18 19:00:59 1999
@@ -1524,9 +1524,11 @@
printk(CDU535_MESSAGE_NAME ": my base address is not free!\n");
return -EIO;
}
+
/* look for the CD-ROM, follows the procedure in the DOS driver */
inb(select_unit_reg);
/* wait for 40 18 Hz ticks (reverse-engineered from DOS driver) */
+ current->state = TASK_INTERRUPTIBLE;
schedule_timeout((HZ+17)*40/18);
inb(result_reg);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/