Bug 1686897

Summary: [CodeChange][Coverity] RETURN_LOCAL in __nlc_inode_ctx_get()
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Milind Changire <mchangir>
Component: coreAssignee: Rinku <rkothiya>
Status: CLOSED ERRATA QA Contact: Prasanth <pprakash>
Severity: medium Docs Contact:
Priority: medium    
Version: rhgs-3.3CC: moagrawa, pasik, pprakash, puebele, rhs-bugs, rkothiya, sheggodu, storage-qa-internal
Target Milestone: ---Keywords: CodeChange
Target Release: RHGS 3.5.z Batch Update 3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-6.0-38 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1732496 (view as bug list) Environment:
Last Closed: 2020-12-17 04:50:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1732496    

Description Milind Changire 2019-03-08 15:54:13 UTC
Description of problem:
RETURN_LOCAL in __nlc_inode_ctx_get()


glusterfs-3.12.2/xlators/performance/nl-cache/src/nl-cache-helper.c:162: escape_local_addr_alias: Returning, through "*nlc_pe_p", pointer "nlc_pe" which points to local variable "nlc_pe_int". 

Version-Release number of selected component (if applicable):
RHGS 3.4.3 (glusterfs-3.12.2-40)

How reproducible:
https://cov01.lab.eng.brq.redhat.com/covscanhub/waiving/30395/110753/

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Mohit Agrawal 2019-11-25 07:27:50 UTC
Patch is already posted on upstream
https://review.gluster.org/#/c/glusterfs/+/23093/

Comment 12 Yaniv Kaul 2020-10-05 08:54:10 UTC
CodeChange - moving to VERIFIED.

Comment 14 errata-xmlrpc 2020-12-17 04:50:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (glusterfs bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:5603