H bridge and polarity in a motor

If you study the data sheet for your motor driver, you will very likely find that this case is discussed.

You can also set both outputs low.

Often those two cases have different effects (brake versus freewheel).