diff options
Diffstat (limited to 'drivers/cdrom/optcd.c')
-rw-r--r-- | drivers/cdrom/optcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/optcd.c b/drivers/cdrom/optcd.c index 3541690a77d..efd619c0fe1 100644 --- a/drivers/cdrom/optcd.c +++ b/drivers/cdrom/optcd.c @@ -977,7 +977,7 @@ static int update_toc(void) static int current_valid(void) { return CURRENT && - CURRENT->cmd == READ && + rq_data_dir(CURRENT) == READ && CURRENT->sector != -1; } |