]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r292604:
authorbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Jan 2016 14:08:40 +0000 (14:08 +0000)
committerbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Jan 2016 14:08:40 +0000 (14:08 +0000)
commit482e07069ea6c192bb85c4b2a45aa7ad6edd2a8b
tree599ed1e24d14025a3612170357c823158c7f8698
parentedd7bb18b2898fd7b80dd1a6e805ddb79e7238c6
MFC r292604:

 If vnets are torn down while ifconfig runs an ioctl to say, destroy an
 epair(4), we may hit if_detach_internal() without holding a lock and by
 the time we aquire it the interface might be gone.
 We should not panic() in this case as it is our fault for not holding
 the lock all the way. It is not ideal to return silently without error
 to user space, but other callers will all ignore the return values so
 do not change the entire KPI for little benefit for now.
 The ifp will be dealt with one way or another still.

git-svn-id: svn://svn.freebsd.org/base/stable/10@294502 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if.c