diff options
| author | ShyamsundarR <srangana@redhat.com> | 2018-11-30 11:58:57 -0500 |
|---|---|---|
| committer | gluster-ant <bugzilla-bot@gluster.org> | 2018-11-30 11:58:57 -0500 |
| commit | ca5fccc0a85c8ca4dc85e2f50603e68e75b80b9c (patch) | |
| tree | 8c631c2cc9e741f453a075418a835f6fb0b86f8e /cli/src | |
| parent | 8eae790fd5cb8128fe51b589a3b95fd6ef19b9fb (diff) | |
clang: Fix io-stats.c NULL pointer issue reported by clang
The issue pertains to checking if conf is NULL in BUMP_FOP
but not providing that safety in io_stats_release when using
conf to lock and bump nr_opens.
This is now corrected to check if conf is non-NULL before
attempting the lock and bump nr_opens.
Tested with local clang analyzer to ensure this fixes the
problem.
Change-Id: Iffd6a97c2060d0a6930a8dc5914b1956c192cab1
Updates: bz#1622665
Signed-off-by: ShyamsundarR <srangana@redhat.com>
Diffstat (limited to 'cli/src')
0 files changed, 0 insertions, 0 deletions
