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

New static analysis issues in osc

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: Lustre 2.7.0
    • Fix Version/s: None
    • Labels:
    • Severity:
      3
    • Rank (Obsolete):
      16418

      Description

      Pointer 'matched' returned from call to function 'ldlm_handle2lock' at line 2312 may be NULL and will be dereferenced at line 2318. Also there are 2 similar errors on line(s) 2327, 2331.

      TRACEBACK:

      • osc_request.c:2312: 'matched' is assigned the return value from function 'ldlm_handle2lock'.
        • lustre_dlm.h:1254: '_ldlm_handle2lock(h, 0)' is assigned the return value from function '_ldlm_handle2lock'.
          • ldlm_lock.c:606: '__ldlm_handle2lock' explicitly returns a NULL value.
        • lustre_dlm.h:1254: '__ldlm_handle2lock(h, 0)' is returned by 'ldlm_handle2lock'.
      • osc_request.c:2318: 'matched' is dereferenced by passing argument 1 to function 'ldlm_lock_put'.
        • ldlm_lock.c:201: 'lock' is passed to function 'ldlm_lock_put'.
        • ldlm_lock.c:205: 'lock' is explicitly dereferenced.

        Attachments

          Activity

            People

            • Assignee:
              bobijam Zhenyu Xu
              Reporter:
              dmiter Dmitry Eremin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: