]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Delay the global registration of the struct ifnet in if_alloc() until after
authorBrooks Davis <brooks@FreeBSD.org>
Sat, 19 Apr 2008 22:04:51 +0000 (22:04 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Sat, 19 Apr 2008 22:04:51 +0000 (22:04 +0000)
commitae0615f633a92ebf8cc6b92c5c5b5774048c4610
treeb67ece9c74076830861eede172d7ab8375354a7a
parent1a46aa801e1262e02fac68567bf834ddea762df0
Delay the global registration of the struct ifnet in if_alloc() until after
we're certain the allocation will entierly succeed.  This fixes a leak in a
fairly unlikely case.

Reported by: vijay singh <vijjus at rocketmail dot com>
MFC after: 1 week
sys/net/if.c