aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/sjcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cdrom/sjcd.c')
-rw-r--r--drivers/cdrom/sjcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/sjcd.c b/drivers/cdrom/sjcd.c
index 5409fca5bbfc..76c24e679e68 100644
--- a/drivers/cdrom/sjcd.c
+++ b/drivers/cdrom/sjcd.c
@@ -1064,7 +1064,7 @@ static void sjcd_invalidate_buffers(void)
1064static int current_valid(void) 1064static int current_valid(void)
1065{ 1065{
1066 return CURRENT && 1066 return CURRENT &&
1067 CURRENT->cmd == READ && 1067 rq_data_dir(CURRENT) == READ &&
1068 CURRENT->sector != -1; 1068 CURRENT->sector != -1;
1069} 1069}
1070 1070