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

mdc_changelog_cdev_init leaves freed items on the list

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • Lustre 2.16.0, Lustre 2.12.9, Lustre 2.15.0
    • None

    Description

              list_add_tail(&obd->u.cli.cl_chg_dev_linkage, &entry->ced_obds);
              list_add_tail(&entry->ced_link, &chlg_registered_devices);
      
              rc = chlg_minor_alloc(&minor);
              if (rc)
                      GOTO(out_unlock, rc);
      ...
      out_minor:
              chlg_minor_free(minor);
              list_del_init(&obd->u.cli.cl_chg_dev_linkage);
              list_del(&entry->ced_link);
      out_unlock:
              mutex_unlock(&chlg_registered_dev_lock);
              if (entry)
                      OBD_FREE_PTR(entry);
              RETURN(rc);
       

      Attachments

        Activity

          People

            green Oleg Drokin
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: