aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_ddll.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-03-26 15:48:12 +0200
committerSverker Eriksson <[email protected]>2018-03-26 15:48:12 +0200
commit39cf4e75f31e9abe46c9fe39000368c1243fdcf3 (patch)
tree962323787c184be03d18cbe93a8a8de1757204b4 /erts/emulator/beam/erl_bif_ddll.c
parentb48df378266717e1f6b79b96eb0f69cb08081585 (diff)
downloadotp-39cf4e75f31e9abe46c9fe39000368c1243fdcf3.tar.gz
otp-39cf4e75f31e9abe46c9fe39000368c1243fdcf3.tar.bz2
otp-39cf4e75f31e9abe46c9fe39000368c1243fdcf3.zip
erts: Include foreign static linked drivers in taints
That is, driver added with config option --enable-static-drivers.
Diffstat (limited to 'erts/emulator/beam/erl_bif_ddll.c')
-rw-r--r--erts/emulator/beam/erl_bif_ddll.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/erts/emulator/beam/erl_bif_ddll.c b/erts/emulator/beam/erl_bif_ddll.c
index 8220ba97a2..294bce115f 100644
--- a/erts/emulator/beam/erl_bif_ddll.c
+++ b/erts/emulator/beam/erl_bif_ddll.c
@@ -1506,14 +1506,6 @@ static int do_load_driver_entry(DE_Handle *dh, char *path, char *name)
goto error;
}
- {
- Eterm name_atom = erts_atom_put((byte*)name, sys_strlen(name),
- ERTS_ATOM_ENC_LATIN1, 0);
- if (is_non_value(name_atom))
- goto error;
- erts_add_taint(name_atom);
- }
-
erts_atomic_init_nob(&(dh->refc), (erts_aint_t) 0);
erts_atomic32_init_nob(&dh->port_count, 0);
dh->full_path = erts_alloc(ERTS_ALC_T_DDLL_HANDLE, sys_strlen(path) + 1);
@@ -1521,7 +1513,7 @@ static int do_load_driver_entry(DE_Handle *dh, char *path, char *name)
dh->flags = 0;
dh->status = ERL_DE_OK;
- if (erts_add_driver_entry(dp, dh, 1) != 0 /* io.c */) {
+ if (erts_add_driver_entry(dp, dh, 1, 1) != 0 /* io.c */) {
/*
* The init in the driver struct did not return 0
*/