[IBBUS] The patch deletes ibbus symbolic link on driver unloads
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Apr 2008 10:53:58 +0000 (10:53 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Apr 2008 10:53:58 +0000 (10:53 +0000)
Proposed by: Slava Strebkov [slavas@voltaire.com]

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1045 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/bus/kernel/bus_driver.c

index 685bf75..1c5d9b5 100644 (file)
@@ -455,10 +455,14 @@ static void
 bus_drv_unload(\r
        IN                              DRIVER_OBJECT                           *p_driver_obj )\r
 {\r
-       BUS_ENTER( BUS_DBG_DRV );\r
-\r
+       UNICODE_STRING           dos_name;\r
        UNUSED_PARAM( p_driver_obj );\r
 \r
+       BUS_ENTER( BUS_DBG_DRV );\r
+       \r
+       RtlInitUnicodeString( &dos_name, L"\\DosDevices\\Global\\ibal" );\r
+       IoDeleteSymbolicLink( &dos_name );\r
+\r
        CL_DEINIT;\r
 \r
 #if defined(EVENT_TRACING)\r