From efa90d4294fee85b51a7eb7e3d40d4053c0035a0 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 5 Jan 2018 16:05:38 +0800 Subject: [PATCH] netif: Add LWIP_ASSERT_CORE_LOCKED() to netif_set_remove_callback Signed-off-by: Axel Lin Signed-off-by: Dirk Ziegelmeier --- src/core/netif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/netif.c b/src/core/netif.c index 8330ad7b..49964513 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -909,6 +909,8 @@ netif_set_status_callback(struct netif *netif, netif_status_callback_fn status_c void netif_set_remove_callback(struct netif *netif, netif_status_callback_fn remove_callback) { + LWIP_ASSERT_CORE_LOCKED(); + if (netif) { netif->remove_callback = remove_callback; }