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

most uses of IS_ERR_VALUE() are incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • Lustre 2.6.0, Lustre 2.5.2
    • Lustre 2.5.0
    • None
    • 3
    • 8795

      We have several places in the code that do something equivalent the following

      int rc = PTR_ERR(foo);
      if (IS_ERR_VALUE(rc))
              bar();
      

      which is wrong.

            jhammond John Hammond
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: