From e3b3cc4977c256ce09836393104ab170e8f966c1 Mon Sep 17 00:00:00 2001 From: hselasky Date: Mon, 23 Nov 2015 13:36:41 +0000 Subject: [PATCH] MFC r284722 and r284724: Fix endless recursion in ti(4)'s ti_ifmedia_upd(), found by clang 3.7.0. --- sys/dev/ti/if_ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 36cf0477ca1a..64858586a31c 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -3335,7 +3335,7 @@ ti_ifmedia_upd(struct ifnet *ifp) sc = ifp->if_softc; TI_LOCK(sc); - error = ti_ifmedia_upd(ifp); + error = ti_ifmedia_upd_locked(sc); TI_UNLOCK(sc); return (error);