diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/pktcdvd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 93fb6ed4ed52..a4fb70383188 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
@@ -765,7 +765,7 @@ static int pkt_generic_packet(struct pktcdvd_device *pd, struct packet_command * | |||
765 | goto out; | 765 | goto out; |
766 | } | 766 | } |
767 | 767 | ||
768 | rq->cmd_len = COMMAND_SIZE(rq->cmd[0]); | 768 | rq->cmd_len = COMMAND_SIZE(cgc->cmd[0]); |
769 | memcpy(rq->cmd, cgc->cmd, CDROM_PACKET_SIZE); | 769 | memcpy(rq->cmd, cgc->cmd, CDROM_PACKET_SIZE); |
770 | if (sizeof(rq->cmd) > CDROM_PACKET_SIZE) | 770 | if (sizeof(rq->cmd) > CDROM_PACKET_SIZE) |
771 | memset(rq->cmd + CDROM_PACKET_SIZE, 0, sizeof(rq->cmd) - CDROM_PACKET_SIZE); | 771 | memset(rq->cmd + CDROM_PACKET_SIZE, 0, sizeof(rq->cmd) - CDROM_PACKET_SIZE); |