Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-7413

out_read() may pass a NULL pointer to OBD_FREE()

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • Lustre 2.8.0
    • Lustre 2.8.0
    • 3
    • 9223372036854775807

    Description

      If we allocate rdbuf->rb_bufs[i] but fail to allocate rdbuf->rb_bufs[i]->lb_buf then we pass a NULL pointer to OBD_FREE().

              for (i = 0; i < nbufs; i++) {
                      if (rdbuf->rb_bufs[i] != NULL) {
                              OBD_FREE(rdbuf->rb_bufs[i]->lb_buf,
                                       rdbuf->rb_bufs[i]->lb_len);
                              OBD_FREE_PTR(rdbuf->rb_bufs[i]);
                      }
      	}
      

      Attachments

        Activity

          People

            di.wang Di Wang
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: