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

os: Initializing uninitialized members aio_info #17066

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

code-with-amitk
Copy link

Fixes the coverity issue:

** 717332 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 717332 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)

  1. 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

Fixes the coverity issue:

** 717332 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 717332 (ceph#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
Copy link
Member

@gregsfortytwo gregsfortytwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gregsfortytwo gregsfortytwo merged commit b5220e2 into ceph:master Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants