Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
Lustre 2.7.0
-
3
-
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'.
- lustre_dlm.h:1254: '_ldlm_handle2lock(h, 0)' is assigned the return value from function '_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
Issue Links
- is related to
-
LU-4629 Issues found by static analysis tools
- Resolved