sys/dev/xen/blkfront/blkfront.c:

In xbd_thaw(), fix inverted logic to verify the queue is frozen
	before attempting a thaw.

MFC after:	1 week
This commit is contained in:
Justin T. Gibbs 2013-06-16 16:01:24 +00:00
parent cdfc586295
commit b834eea697
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251807

View File

@ -103,7 +103,7 @@ xbd_thaw(struct xbd_softc *sc, xbd_flag_t xbd_flag)
if (xbd_flag != XBDF_NONE && (sc->xbd_flags & xbd_flag) == 0)
return;
if (sc->xbd_qfrozen_cnt != 0)
if (sc->xbd_qfrozen_cnt == 0)
panic("%s: Thaw with flag 0x%x while not frozen.",
__func__, xbd_flag);