diff --git a/arch/arm/src/cxd56xx/cxd56_serial.c b/arch/arm/src/cxd56xx/cxd56_serial.c index 4f62145f99..5ece1db4cc 100644 --- a/arch/arm/src/cxd56xx/cxd56_serial.c +++ b/arch/arm/src/cxd56xx/cxd56_serial.c @@ -862,11 +862,11 @@ static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg) #endif priv->baud = cfgetispeed(termiosp); + spin_unlock_irqrestore(&priv->lock, flags); + /* Configure the UART line format and speed. */ up_set_format(dev); - - spin_unlock_irqrestore(&priv->lock, flags); } break; #endif