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

common,os: Initializing commit_data,cmount,iocb #17766

Merged
merged 1 commit into from Nov 22, 2017

Conversation

Projects
None yet
3 participants
@amitkumar50
Copy link
Contributor

commented Sep 17, 2017

Fixes the coverity issues:

** 1396166 Uninitialized pointer field

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

** 1405353 Uninitialized pointer field

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

** 1405848 Uninitialized pointer field

  1. uninit_member: Non-static class member field iocb.data is not
    initialized in this constructor nor in any functions that it calls.
  2. uninit_member: Non-static class member field iocb.key is not initialized
    in this constructor nor in any functions that it calls.
  3. uninit_member: Non-static class member field iocb.__pad2 is not
    initialized in this constructor nor in any functions that it calls.
  4. uninit_member: Non-static class member field iocb.aio_lio_opcode
    is not initialized in this constructor nor in any functions that it calls.
  5. uninit_member: Non-static class member field iocb.aio_reqprio is not
    initialized in this constructor nor in any functions that it calls.
    CID 1405848 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
  6. uninit_member: Non-static class member field iocb.aio_fildes is not
    initialized in this constructor nor in any functions that it calls.

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

common,os:Initializing commit_data,cmount,iocb
** 1396166 Uninitialized pointer field
2. uninit_member: Non-static class member field commit_data.link_left
is not initialized in this constructor nor in any functions that it calls.
CID 1396166 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
4. uninit_member: Non-static class member field commit_data.node is not
initialized in this constructor nor in any functions that it calls.

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

** 1405848 Uninitialized pointer field
2. uninit_member: Non-static class member field iocb.data is not
initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member field iocb.key is not initialized
in this constructor nor in any functions that it calls.
6. uninit_member: Non-static class member field iocb.__pad2 is not
initialized in this constructor nor in any functions that it calls.
8. uninit_member: Non-static class member field iocb.aio_lio_opcode
is not initialized in this constructor nor in any functions that it calls.
10. uninit_member: Non-static class member field iocb.aio_reqprio is not
initialized in this constructor nor in any functions that it calls.
CID 1405848 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
12. uninit_member: Non-static class member field iocb.aio_fildes is not
initialized in this constructor nor in any functions that it calls.

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

@liewegas liewegas changed the title common,os:Initializing commit_data,cmount,iocb common,os: Initializing commit_data,cmount,iocb Nov 17, 2017

@tchaikov tchaikov merged commit 23c8f67 into ceph:master Nov 22, 2017

4 checks passed

Docs: build check OK - docs built
Details
Signed-off-by all commits in this PR are signed
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.