]> err.no Git - linux-2.6/commit
[INET]: Fix inet_diag dead-lock regression
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 3 Dec 2007 04:51:25 +0000 (15:51 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 3 Dec 2007 04:51:25 +0000 (15:51 +1100)
commitd523a328fb0271e1a763e985a21f2488fd816e7e
treec877f39b7719531646d7066085f1fc2af39be5ed
parent2b1e300a9dfc3196ccddf6f1d74b91b7af55e416
[INET]: Fix inet_diag dead-lock regression

The inet_diag register fix broke inet_diag module loading because the
loaded module had to take the same mutex that's already held by the
loader in order to register the new handler.

This patch fixes it by introducing a separate mutex to protect the
handling of handlers.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
net/ipv4/inet_diag.c