From 1777ce593cd821ceb9ca00e15298bdfc9b5ec437 Mon Sep 17 00:00:00 2001
From: Rickard Green <rickard@erlang.org>
Date: Mon, 10 Jun 2013 14:23:01 +0200
Subject: Fix bad fix of erts_stale_drv_select()

---
 erts/emulator/beam/io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'erts/emulator')

diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c
index 0f6b3aa8a7..8585a8a017 100644
--- a/erts/emulator/beam/io.c
+++ b/erts/emulator/beam/io.c
@@ -5005,7 +5005,7 @@ erts_stale_drv_select(Eterm port,
     if (drv_port == ERTS_INVALID_ERL_DRV_PORT) {
 	Port *prt = erts_port_lookup_raw(port);
 	if (prt)
-	    drv_port = ERTS_Port2ErlDrvPort(port);
+	    drv_port = ERTS_Port2ErlDrvPort(prt);
 	else
 	    drv_port = ERTS_INVALID_ERL_DRV_PORT;
     }
-- 
cgit v1.2.3