commit | aadf31de16a7b2878af00a02e6557df84efa784b | [log] [tgz] |
---|---|---|
author | Ben Hutchings <ben@decadent.org.uk> | Mon Aug 13 02:50:55 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Aug 14 16:52:02 2012 -0700 |
tree | 8ad3aa78fdabdc1c60e5608b342ec1782eb72513 | |
parent | f4f8720febf0d785a054fc09bde5e3ad09728a58 [diff] |
llc: Fix races between llc2 handler use and (un)registration When registering the handlers, any state they rely on must be completely initialised first. When unregistering, we must wait until they are definitely no longer running. llc_rcv() must also avoid reading the handler pointers again after checking for NULL. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>