LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] pktcdvd: Correctly set cmd_len field in pkt_generic_packet
@ 2007-02-10 19:03 Gerhard Dirschl
  0 siblings, 0 replies; only message in thread
From: Gerhard Dirschl @ 2007-02-10 19:03 UTC (permalink / raw)
  To: Peter Osterlund; +Cc: Linux Kernel Mailing List

Fixes http://bugzilla.kernel.org/show_bug.cgi?id=7810 - a silly
copy-paste bug introduced by the latest change.

Signed-off-by: Gerhard Dirschl <gd@spherenet.de>
---
Maybe it fixes http://bugzilla.kernel.org/show_bug.cgi?id=7910
as well.

diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index 6246219..dd38c30 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -777,7 +777,7 @@ static int pkt_generic_packet(struct pktcdvd_device *pd, struct packet_command *
 			goto out;
 	}
 
-	rq->cmd_len = COMMAND_SIZE(rq->cmd[0]);
+	rq->cmd_len = COMMAND_SIZE(cgc->cmd[0]);
 	memcpy(rq->cmd, cgc->cmd, CDROM_PACKET_SIZE);
 	if (sizeof(rq->cmd) > CDROM_PACKET_SIZE)
 		memset(rq->cmd + CDROM_PACKET_SIZE, 0, sizeof(rq->cmd) - CDROM_PACKET_SIZE);

-- 
Gerhard Dirschl        PGP-Key-ID: 0x7B95AE94
Germany

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-10 19:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-10 19:03 [PATCH] pktcdvd: Correctly set cmd_len field in pkt_generic_packet Gerhard Dirschl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).