summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2026-04-29 14:30:01 -0700
committerJakub Kicinski <kuba@kernel.org>2026-05-01 16:46:30 -0700
commitfa11b40480132077de3787cf2122646b0c8ecc41 (patch)
tree47b9eccdf29ae5ee8324b64d21b1970ec356e2e1 /include/linux/debugobjects.h
parentedf4bee4215a173c0534d1851d7523d827149f9e (diff)
net: tls: reshuffle the device ops check
We try to validate during registration that the netdev has ops if it has features. This is currently somewhat sillily written because we have a dereference before a NULL check on the ops struct. Straighten this out. No functional change intended other than saving ourselves the very theoretical crash with a bad driver. Note that we check earlier in the function that either ops or TLS features are set for the device in question. Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260429213001.1908235-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions