[patch 099/101] pktcdvd: Correctly set cmd_len field in pkt_generic_packet

2007-03-07 Thread Greg KH

From: Gerhard Dirschl <[EMAIL PROTECTED]>

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 <[EMAIL PROTECTED]>
Cc: Peter Osterlund <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>

---
 drivers/block/pktcdvd.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.20.1.orig/drivers/block/pktcdvd.c
+++ linux-2.6.20.1/drivers/block/pktcdvd.c
@@ -777,7 +777,7 @@ static int pkt_generic_packet(struct pkt
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);

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[patch 099/101] pktcdvd: Correctly set cmd_len field in pkt_generic_packet

2007-03-07 Thread Greg KH

From: Gerhard Dirschl [EMAIL PROTECTED]

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 [EMAIL PROTECTED]
Cc: Peter Osterlund [EMAIL PROTECTED]
Signed-off-by: Andrew Morton [EMAIL PROTECTED]
Signed-off-by: Greg Kroah-Hartman [EMAIL PROTECTED]

---
 drivers/block/pktcdvd.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.20.1.orig/drivers/block/pktcdvd.c
+++ linux-2.6.20.1/drivers/block/pktcdvd.c
@@ -777,7 +777,7 @@ static int pkt_generic_packet(struct pkt
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);

--
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/