summaryrefslogtreecommitdiff
path: root/lib/atomic64.c
diff options
context:
space:
mode:
authorDavid Gow <davidgow@google.com>2021-11-02 00:30:13 -0700
committerShuah Khan <skhan@linuxfoundation.org>2021-12-13 13:36:21 -0700
commit37dbb4c7c7442dbfc9b651e4ddd4afe30b26afc9 (patch)
tree2351f89a8a09e729bae637404531998ebb815d46 /lib/atomic64.c
parente56e482855b782b0e38b91cc383324bb80461073 (diff)
downloadlinux-37dbb4c7c7442dbfc9b651e4ddd4afe30b26afc9.tar.gz
linux-37dbb4c7c7442dbfc9b651e4ddd4afe30b26afc9.tar.bz2
linux-37dbb4c7c7442dbfc9b651e4ddd4afe30b26afc9.zip
kunit: Don't crash if no parameters are generated
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>
Diffstat (limited to 'lib/atomic64.c')
0 files changed, 0 insertions, 0 deletions