Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/librbd: initialize on_finish,locker,force,snap_id #17800

Merged
merged 1 commit into from Sep 26, 2017

Conversation

Projects
None yet
2 participants
@amitkumar50
Copy link
Contributor

commented Sep 19, 2017

Fixes the coverity issues:

** 396154 Uninitialized pointer field

CID 1396154 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member on_finish is not initialized
in this constructor nor in any functions that it calls.

** 1396158 Uninitialized pointer field

  1. uninit_member: Non-static class member snap_id is not initialized
    in this constructor nor in any functions that it calls.
  2. uninit_member: Non-static class member force is not initialized
    in this constructor nor in any functions that it calls.
    CID 1396158 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
  3. uninit_member: Non-static class member on_finish is not initialized
    in this constructor nor in any functions that it calls.

** 1399593 Uninitialized pointer field

  1. uninit_member: Non-static class member locker is not initialized
    in this constructor nor in any functions that it calls.
    CID 1399593 (#2 of 2): Uninitialized pointer field (UNINIT_CTOR)
  2. uninit_member: Non-static class member on_finish is not initialized
    in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar amitkuma@redhat.com

librbd: Initialize on_finish,locker,force,snap_id
** 396154 Uninitialized pointer field
CID 1396154 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member on_finish is not initialized
in this constructor nor in any functions that it calls.

** 1396158 Uninitialized pointer field
2. uninit_member: Non-static class member snap_id is not initialized
in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member force is not initialized
in this constructor nor in any functions that it calls.
CID 1396158 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
6. uninit_member: Non-static class member on_finish is not initialized
in this constructor nor in any functions that it calls.

** 1399593 Uninitialized pointer field
2. uninit_member: Non-static class member locker is not initialized
in this constructor nor in any functions that it calls.
CID 1399593 (#2 of 2): Uninitialized pointer field (UNINIT_CTOR)
4. uninit_member: Non-static class member on_finish is not initialized
in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>

@dillaman dillaman added the tests label Sep 26, 2017

@dillaman dillaman changed the title librbd: Initialize on_finish,locker,force,snap_id test/librbd: initialize on_finish,locker,force,snap_id Sep 26, 2017

@dillaman dillaman merged commit 12d97f2 into ceph:master Sep 26, 2017

5 checks passed

Docs: build check OK - docs built
Details
Signed-off-by all commits in this PR are signed
Details
Unmodified Submodules submodules for project are unmodified
Details
make check make check succeeded
Details
make check (arm64) make check succeeded
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.