aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing/plugin-lib/rootPlugin.py
diff options
context:
space:
mode:
authorEdward Cree <[email protected]>2023-09-19 18:39:49 +0000
committerPaolo Abeni <[email protected]>2023-09-21 08:37:16 +0000
commitfc21f08375dbf654bd1fda748261955de580ac14 (patch)
tree08ad1e1b2a82bc17d90cca5102ee6cc9828ddd64 /tools/testing/selftests/tc-testing/plugin-lib/rootPlugin.py
parentigc: Expose tx-usecs coalesce setting to user (diff)
downloadkernel-fc21f08375dbf654bd1fda748261955de580ac14.tar.gz
kernel-fc21f08375dbf654bd1fda748261955de580ac14.zip
sfc: handle error pointers returned by rhashtable_lookup_get_insert_fast()
Several places in TC offload code assumed that the return from rhashtable_lookup_get_insert_fast() was always either NULL or a valid pointer to an existing entry, but in fact that function can return an error pointer. In that case, perform the usual cleanup of the newly created entry, then pass up the error, rather than attempting to take a reference on the old entry. Fixes: d902e1a737d4 ("sfc: bare bones TC offload on EF100") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Edward Cree <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/tc-testing/plugin-lib/rootPlugin.py')
0 files changed, 0 insertions, 0 deletions