Attilio Rao b1b11ad27e Fix a race between ngs_rcvmsg() and soclose() which closes the control
socket while it is still in use.
priv->ctlsock is checked at the top of the function but without any
lock held, which means the control socket state may certainly change.
Add a similar protection to ngs_shutdown() even if a race is unlikely
to be experienced there.

Sponsored by:	Sandvine Incorporated
Obtained from:	Nima Misaghian @ Sandvine Incorporated
		<nmisaghian at sandvine dot com>
MFC after:	10 days
2010-05-19 15:06:09 +00:00
..
2010-05-19 00:03:48 +00:00
2010-05-16 22:21:33 +00:00
2010-05-19 00:23:10 +00:00
2010-05-18 17:01:07 +00:00
2010-05-19 01:37:47 +00:00