summaryrefslogtreecommitdiff
path: root/net/core/filter.c
diff options
context:
space:
mode:
authorDavid Gow <davidgow@google.com>2021-11-02 10:30:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-27 13:04:40 +0300
commit451ee28aed9d02c54b12c8b8e845d9a0463c84f9 (patch)
tree83ffbbc2dacd6734ab24a3b72febfddeecf92d15 /net/core/filter.c
parent584d9e3e74590ce9f0a6f422feb9d64241ed7f99 (diff)
downloadlinux-451ee28aed9d02c54b12c8b8e845d9a0463c84f9.tar.xz
kunit: Don't crash if no parameters are generated
[ Upstream commit 37dbb4c7c7442dbfc9b651e4ddd4afe30b26afc9 ] It's possible that a parameterised test could end up with zero parameters. At the moment, the test function will nevertheless be called with NULL as the parameter. Instead, don't try to run the test code, and just mark the test as SKIPped. Reported-by: Daniel Latypov <dlatypov@google.com> Signed-off-by: David Gow <davidgow@google.com> Reviewed-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/core/filter.c')
0 files changed, 0 insertions, 0 deletions