aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/optcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cdrom/optcd.c')
-rw-r--r--drivers/cdrom/optcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/optcd.c b/drivers/cdrom/optcd.c
index 3541690a77d4..efd619c0fe10 100644
--- a/drivers/cdrom/optcd.c
+++ b/drivers/cdrom/optcd.c
@@ -977,7 +977,7 @@ static int update_toc(void)
977static int current_valid(void) 977static int current_valid(void)
978{ 978{
979 return CURRENT && 979 return CURRENT &&
980 CURRENT->cmd == READ && 980 rq_data_dir(CURRENT) == READ &&
981 CURRENT->sector != -1; 981 CURRENT->sector != -1;
982} 982}
983 983