Cleanup: use mutex_lock() wrapper in rculfhash
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 8 Jun 2017 00:19:13 +0000 (20:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 8 Jun 2017 00:19:13 +0000 (20:19 -0400)
commit5ffcaeef59b55dbb6d3a0d952f87d8a7387edca3
tree9088313cfbe1b9b2c3b3ffaccd8d7f5fdeb6bc7c
parentd0ec0ed2fcb5d67a28587dcb778606e64f5b7b83
Cleanup: use mutex_lock() wrapper in rculfhash

Fixes this coverity issue:

*** CID 1375952:  Error handling issues  (CHECKED_RETURN)
/src/rculfhash.c: 1950 in cds_lfht_resize()
1944     }
1945
1946     void cds_lfht_resize(struct cds_lfht *ht, unsigned long new_size)
1947     {
1948             resize_target_update_count(ht, new_size);
1949             CMM_STORE_SHARED(ht->resize_initiated, 1);
>>>     CID 1375952:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "pthread_mutex_lock" without checking return value (as is done elsewhere 44 out of 50 times).
1950             pthread_mutex_lock(&ht->resize_mutex);
1951             _do_cds_lfht_resize(ht);
1952             pthread_mutex_unlock(&ht->resize_mutex);
1953     }
1954
1955     static

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/rculfhash.c
This page took 0.024636 seconds and 4 git commands to generate.