mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 03:22:37 +00:00
After commit3f34cfae12("netfilter: on sockopt() acquire sock lock only in the required scope"), the caller of nf_{get/set}sockopt() must not hold any lock, but, in such changeset, I forgot to cope with DECnet. This commit addresses the issue moving the nf call outside the lock, in the dn_{get,set}sockopt() with the same schema currently used by ipv4 and ipv6. Also moves the unhandled sockopts of the end of the main switch statements, to improve code readability. Reported-by: Petr Vandrovec <[email protected]> BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=198791#c2 Fixes:3f34cfae12("netfilter: on sockopt() acquire sock lock only in the required scope") Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Linux DECnet Project
======================
The documentation for this kernel subsystem is available in the
Documentation/networking subdirectory of this distribution and also
on line at http://www.chygwyn.com/DECnet/
Steve Whitehouse <[email protected]>