Commit 57f30f9c authored by Harald Welte's avatar Harald Welte

icE1usb: Don't silently ignore startup errors on re-configuration

If an already-active line gets reconfigured, we implement this by
a shutdown followed by a startup.  However, the startup could fail,
which should make the spanconfig return the error code.
parent e72a1850
......@@ -684,7 +684,9 @@ static int e1u_d_spanconfig(struct file *file, struct dahdi_span *span,
* day long, so a brief interruption is deemed acceptable */
e1u_d_shutdown(span);
rc = ice1usb_tx_config(ieu);
e1u_d_startup(file, span);
if (rc < 0)
return rc;
rc = e1u_d_startup(file, span);
} else
rc = ice1usb_tx_config(ieu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment