net/udp: If the interface index of the device bound to a UDP socket is no longer valid because the device has been unregistered, then un-bind the UDP socket.

This commit is contained in:
Gregory Nutt
2018-06-26 06:53:13 -06:00
parent 1c76e10c06
commit 8e6afb958a
2 changed files with 61 additions and 43 deletions
+1 -1
View File
@@ -470,7 +470,7 @@ static int automount_interrupt(FAR const struct automount_lower_s *lower,
ret = work_cancel(LPWORK, &priv->work);
if (ret < 0)
{
/* NOTE: Currently, work_cancel only returns success */
/* NOTE: Probably -ENOENT which means only that work is not queued. */
ferr("ERROR: Failed to cancel work: %d\n", ret);
}