patch-2.4.20 linux-2.4.20/drivers/ide/ide-cd.c

Next file: linux-2.4.20/drivers/ide/ide-cs.c
Previous file: linux-2.4.20/drivers/ide/ataraid.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/ide/ide-cd.c linux-2.4.20/drivers/ide/ide-cd.c
@@ -2194,6 +2194,8 @@
 	   layer. the packet must be complete, as we do not
 	   touch it at all. */
 	memset(&pc, 0, sizeof(pc));
+	if (cgc->sense)
+		memset(cgc->sense, 0, sizeof(struct request_sense));
 	memcpy(pc.c, cgc->cmd, CDROM_PACKET_SIZE);
 	pc.buffer = cgc->buffer;
 	pc.buflen = cgc->buflen;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)