Skip to content
Snippets Groups Projects
Commit 764e05bf authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Correct unitialization of composite USB device. A stale pointer was being...

Correct unitialization of composite USB device.  A stale pointer was being reused.  From David Sidrane
parent 4f2e0950
No related branches found
No related tags found
No related merge requests found
......@@ -434,7 +434,6 @@ static int open_serial(void)
message("open_serial: Successfully opened the serial driver\n");
return OK;
}
#endif
/****************************************************************************
* Name: echo_serial
......@@ -474,8 +473,10 @@ static int echo_serial(void)
message("echo_serial: ERROR: read size: %d write size: %d\n",
bytesread, byteswritten);
}
return OK;
}
#endif
/****************************************************************************
* Public Functions
......@@ -577,6 +578,7 @@ int board_mscclassobject(FAR struct usbdevclass_driver_s **classdev)
message("board_mscclassobject: usbmsc_classobject failed: %d\n", -ret);
usbmsc_uninitialize(g_composite.mschandle);
}
check_test_memory_usage("After usbmsc_classobject()");
return ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment