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

llog_osd_destroy incorrectly tried to use ERR_PTR pointer

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      smatch highlighted tihs obviously incorrect code in llog_osd_destroy:

              if (loghandle->lgh_name) {
                      llog_dir = llog_osd_dir_get(env, ctxt);
                      if (IS_ERR(llog_dir))
                              GOTO(out_trans, rc = PTR_ERR(llog_dir));
      ...
      out_trans:
              dt_trans_stop(env, d, th);
              if (llog_dir != NULL)
                      lu_object_put(env, &llog_dir->do_lu);
      

      Nothing good can come out of it for sure.

      Attachments

        Activity

          People

            wc-triage WC Triage
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: