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

New static analysis issues in osc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • Lustre 2.7.0
    • 3
    • 16418

      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.

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

              Created:
              Updated:
              Resolved: