Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2014 08:48:24 +0000 (UTC)
From:      Nick Hibma <n_hibma@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269575 - head/sys/dev/usb
Message-ID:  <53e09a58.52ff.1054f858@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: n_hibma
Date: Tue Aug  5 08:48:24 2014
New Revision: 269575
URL: http://svnweb.freebsd.org/changeset/base/269575

Log:
  Reset the error value in the softc before starting a BBB transfer.
  
  PR:		145319
  Submitted by:	rozhuk.im gmail.com
  MFC after:	3 days

Modified:
  head/sys/dev/usb/usb_msctest.c

Modified: head/sys/dev/usb/usb_msctest.c
==============================================================================
--- head/sys/dev/usb/usb_msctest.c	Tue Aug  5 08:30:38 2014	(r269574)
+++ head/sys/dev/usb/usb_msctest.c	Tue Aug  5 08:48:24 2014	(r269575)
@@ -485,6 +485,7 @@ bbb_command_start(struct bbb_transfer *s
 	sc->data_rem = data_len;
 	sc->data_timeout = (data_timeout + USB_MS_HZ);
 	sc->actlen = 0;
+	sc->error = 0;
 	sc->cmd_len = cmd_len;
 	memset(&sc->cbw->CBWCDB, 0, sizeof(sc->cbw->CBWCDB));
 	memcpy(&sc->cbw->CBWCDB, cmd_ptr, cmd_len);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e09a58.52ff.1054f858>