aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-03-07 19:18:25 +0100
committerSverker Eriksson <[email protected]>2018-04-20 18:04:43 +0200
commitf7e016b010f87ce6808c15cbcefd95fe131826bc (patch)
tree497de3ab3eb1dd476a71ef766c679c05754e3d9e /erts/emulator
parente4fb2f14cbdfdf34e6604618136aef66d9db0190 (diff)
downloadotp-f7e016b010f87ce6808c15cbcefd95fe131826bc.tar.gz
otp-f7e016b010f87ce6808c15cbcefd95fe131826bc.tar.bz2
otp-f7e016b010f87ce6808c15cbcefd95fe131826bc.zip
erts: Change wrong alloc_fnf
There is no NULL check here !?
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/erl_db_hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_db_hash.c b/erts/emulator/beam/erl_db_hash.c
index 5d49b2ea14..9fed80c3a2 100644
--- a/erts/emulator/beam/erl_db_hash.c
+++ b/erts/emulator/beam/erl_db_hash.c
@@ -646,9 +646,9 @@ int db_create_hash(Process *p, DbTable *tbl)
rwmtx_opt.type = ERTS_RWMTX_TYPE_FREQUENT_READ;
if (erts_ets_rwmtx_spin_count >= 0)
rwmtx_opt.main_spincount = erts_ets_rwmtx_spin_count;
- tb->locks = (DbTableHashFineLocks*) erts_db_alloc_fnf(ERTS_ALC_T_DB_SEG, /* Other type maybe? */
- (DbTable *) tb,
- sizeof(DbTableHashFineLocks));
+ tb->locks = (DbTableHashFineLocks*) erts_db_alloc(ERTS_ALC_T_DB_SEG, /* Other type maybe? */
+ (DbTable *) tb,
+ sizeof(DbTableHashFineLocks));
for (i=0; i<DB_HASH_LOCK_CNT; ++i) {
erts_rwmtx_init_opt(&tb->locks->lck_vec[i].lck, &rwmtx_opt,
"db_hash_slot", tb->common.the_name, ERTS_LOCK_FLAGS_CATEGORY_DB);