Prevent issues fix 51/21351/1
authorkamesh relangi <kamesh.r@samsung.com>
Thu, 24 Apr 2014 10:27:55 +0000 (15:57 +0530)
committerDongchul Lim <dc7.lim@samsung.com>
Mon, 19 May 2014 08:55:52 +0000 (17:55 +0900)
Change-Id: I40ae042509eb1e9e1bea6739dc402a59ff2a1e16

src/config.c
src/vnet.c

index 7fdc9719947dc94fa48693311bb7dcc671180e75..306625ff89bacfb285f0965721e7c430ab3694e1 100644 (file)
@@ -144,7 +144,6 @@ static void _on_cmux_setup_complete(gpointer user_data)
 static void _on_cmux_channel_setup(guint channel_id,
        TcoreHal *hal, gpointer user_data)
 {
-       TcorePlugin *plugin;
        TcoreHal *phy_hal;
        if ((hal == NULL) || (user_data == NULL))
                return;
@@ -155,9 +154,8 @@ static void _on_cmux_channel_setup(guint channel_id,
        }
 
        phy_hal = user_data;
-       plugin = tcore_hal_ref_plugin(hal);
 
-       dbg("Channel ID: [%d] Logical HAL: [0x%x]", channel_id, hal);
+       dbg("Channel ID: [%d] Logical HAL: [0x%x] Physical HAL: [0x%x]", channel_id, hal, phy_hal);
 
        /* Assign specifc Core Object types to the Logical HAL (CMUX Channel) */
        _assign_objects_to_hal(channel_id, hal);
index 0ffe3a16f3a12e75b92c8ed562ed3b10d558c1cf..32f55fb877d65ca918485dcc43a5743b6fe26d59 100644 (file)
@@ -141,6 +141,8 @@ int vnet_ipc0_open()
        /* Track the state of CP */
        state = vnet_get_cp_state(fd);
        dbg("CP State: [%d]", state);
+       close(fd);
+
        if (state != VNET_CP_STATE_ONLINE) {
                err("CP is NOT yet Online!!!");
                return -1;