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-04-01 16:18:16 +00:00
2008-03-04 11:10:54 +00:00
2010-04-30 07:09:13 +00:00
2010-04-07 16:29:10 +00:00
2009-03-03 18:47:33 +00:00
2009-03-03 18:47:33 +00:00
2010-04-01 16:20:36 +00:00
2010-04-01 10:41:01 +00:00
2009-10-24 18:49:17 +00:00