From ad979802f685e37ea34663a433c1922b41509b9e Mon Sep 17 00:00:00 2001 From: Nick Hibma Date: Wed, 20 Dec 2000 09:37:35 +0000 Subject: [PATCH] Initialise rcmdlen. Submitted by: Ian Dowse --- sys/dev/usb/umass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index 927135e16ce..84032a910ef 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -2466,6 +2466,7 @@ umass_cam_cb(struct umass_softc *sc, void *priv, int residue, int status) sc->cam_scsi_sense.length = csio->sense_len; rcmd = (unsigned char *) &sc->cam_scsi_command; + rcmdlen = sizeof(sc->cam_scsi_command); if (sc->transform(sc, (unsigned char *) &sc->cam_scsi_sense,