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

thandle_get_sub_by_dt dereferences ERR_PTR pointer on error

Details

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

    Description

      thandle_get_sub_by_dt function dereferences PTR_ERR pointer:

                      st = create_sub_thandle_with_thandle(top_th,
                                      top_th->tt_master_sub_thandle);
                      if (IS_ERR(st))
                              GOTO(stop_trans, rc = PTR_ERR(st));
      ....
      stop_trans:
              if (rc < 0) {
                      if (st != NULL)
                              OBD_FREE_PTR(st);
      

      Attachments

        Activity

          [LU-6875] thandle_get_sub_by_dt dereferences ERR_PTR pointer on error

          Landed for 2.8.

          jgmitter Joseph Gmitter (Inactive) added a comment - Landed for 2.8.

          Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15691/
          Subject: LU-6875 update: set st to NULL in error handler
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 861c70ff6e3371c752d53fcb71cdc54fe74cd3c2

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15691/ Subject: LU-6875 update: set st to NULL in error handler Project: fs/lustre-release Branch: master Current Patch Set: Commit: 861c70ff6e3371c752d53fcb71cdc54fe74cd3c2

          wangdi (di.wang@intel.com) uploaded a new patch: http://review.whamcloud.com/15691
          Subject: LU-6875 update: set st to NULL in error handler
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 55a0ca4a1bd434ca4c4e6d48847cc432c1d9381c

          gerrit Gerrit Updater added a comment - wangdi (di.wang@intel.com) uploaded a new patch: http://review.whamcloud.com/15691 Subject: LU-6875 update: set st to NULL in error handler Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 55a0ca4a1bd434ca4c4e6d48847cc432c1d9381c

          People

            di.wang Di Wang
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: