aboutsummaryrefslogtreecommitdiffstats
path: root/net/tls/tls_main.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2019-09-03 04:31:04 +0000
committerDavid S. Miller <[email protected]>2019-09-05 07:49:49 +0000
commit3544c98acd09b3b40e86f015f7df75a7d2d72a5c (patch)
tree28245dd137ae0f93b8c081f575c67e8146f98c7e /net/tls/tls_main.c
parentnet/tls: don't jump to return (diff)
downloadkernel-3544c98acd09b3b40e86f015f7df75a7d2d72a5c.tar.gz
kernel-3544c98acd09b3b40e86f015f7df75a7d2d72a5c.zip
net/tls: narrow down the critical area of device_offload_lock
On setsockopt path we need to hold device_offload_lock from the moment we check netdev is up until the context is fully ready to be added to the tls_device_list. No need to hold it around the get_netdev_for_sock(). Change the code and remove the confusing comment. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: John Hurley <[email protected]> Reviewed-by: Dirk van der Merwe <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tls/tls_main.c')
0 files changed, 0 insertions, 0 deletions