All of lore.kernel.org
 help / color / mirror / Atom feed
* + pktcdvd-correctly-set-cmd_len-field-in-pkt_generic_packet.patch added to -mm tree
@ 2007-02-13  5:32 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-13  5:32 UTC (permalink / raw)
  To: mm-commits; +Cc: gd, petero2, stable


The patch titled
     pktcdvd: Correctly set cmd_len field in pkt_generic_packet
has been added to the -mm tree.  Its filename is
     pktcdvd-correctly-set-cmd_len-field-in-pkt_generic_packet.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: pktcdvd: Correctly set cmd_len field in pkt_generic_packet
From: Gerhard Dirschl <gd@spherenet.de>

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>
Cc: Peter Osterlund <petero2@telia.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

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

diff -puN drivers/block/pktcdvd.c~pktcdvd-correctly-set-cmd_len-field-in-pkt_generic_packet drivers/block/pktcdvd.c
--- a/drivers/block/pktcdvd.c~pktcdvd-correctly-set-cmd_len-field-in-pkt_generic_packet
+++ a/drivers/block/pktcdvd.c
@@ -765,7 +765,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);
_

Patches currently in -mm which might be from gd@spherenet.de are

pktcdvd-correctly-set-cmd_len-field-in-pkt_generic_packet.patch

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

only message in thread, other threads:[~2007-02-13  5:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-13  5:32 + pktcdvd-correctly-set-cmd_len-field-in-pkt_generic_packet.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.