Date: Mon, 11 Aug 2008 17:54:02 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 147163 for review Message-ID: <200808111754.m7BHs2Xd053029@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147163 Change 147163 by hselasky@hselasky_laptop001 on 2008/08/11 17:53:11 Add missing locking of "usb2_mtx". Caught by an mtx_assert() . Affected files ... .. //depot/projects/usb/src/sys/dev/usb2/core/usb2_transfer.c#19 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_transfer.c#19 (text+ko) ==== @@ -2322,6 +2322,7 @@ * If the current USB transfer is completing we need to start the * next one: */ + mtx_lock(xfer->usb2_mtx); if (pipe->pipe_q.curr == xfer) { usb2_command_wrapper(&(pipe->pipe_q), NULL); @@ -2333,6 +2334,7 @@ xfer->pipe->is_synced = 0; } } + mtx_unlock(xfer->usb2_mtx); done: return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808111754.m7BHs2Xd053029>