diff options
Diffstat (limited to 'drivers/cdrom/gscd.c')
-rw-r--r-- | drivers/cdrom/gscd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/gscd.c b/drivers/cdrom/gscd.c index b3ab6e9b8df1..176742ed007b 100644 --- a/drivers/cdrom/gscd.c +++ b/drivers/cdrom/gscd.c | |||
@@ -264,7 +264,7 @@ repeat: | |||
264 | if (req->sector == -1) | 264 | if (req->sector == -1) |
265 | goto out; | 265 | goto out; |
266 | 266 | ||
267 | if (req->cmd != READ) { | 267 | if (rq_data_dir(req) != READ) { |
268 | printk("GSCD: bad cmd %u\n", rq_data_dir(req)); | 268 | printk("GSCD: bad cmd %u\n", rq_data_dir(req)); |
269 | end_request(req, 0); | 269 | end_request(req, 0); |
270 | goto repeat; | 270 | goto repeat; |