Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 332c1ce9 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

sfc: Strengthen EFX_ASSERT_RESET_SERIALISED

parent 80cb9a0f
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -186,7 +186,8 @@ static void efx_fini_channels(struct efx_nic *efx);


#define EFX_ASSERT_RESET_SERIALISED(efx)		\
#define EFX_ASSERT_RESET_SERIALISED(efx)		\
	do {						\
	do {						\
		if (efx->state == STATE_RUNNING)	\
		if ((efx->state == STATE_RUNNING) ||	\
		    (efx->state == STATE_DISABLED))	\
			ASSERT_RTNL();			\
			ASSERT_RTNL();			\
	} while (0)
	} while (0)