Correct unitialization of composite USB device. A stale pointer was being reused. From David Sidrane
This commit is contained in:
parent
4f2e095050
commit
764e05bf6a
@ -434,7 +434,6 @@ static int open_serial(void)
|
|||||||
message("open_serial: Successfully opened the serial driver\n");
|
message("open_serial: Successfully opened the serial driver\n");
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: echo_serial
|
* Name: echo_serial
|
||||||
@ -474,8 +473,10 @@ static int echo_serial(void)
|
|||||||
message("echo_serial: ERROR: read size: %d write size: %d\n",
|
message("echo_serial: ERROR: read size: %d write size: %d\n",
|
||||||
bytesread, byteswritten);
|
bytesread, byteswritten);
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
@ -577,6 +578,7 @@ int board_mscclassobject(FAR struct usbdevclass_driver_s **classdev)
|
|||||||
message("board_mscclassobject: usbmsc_classobject failed: %d\n", -ret);
|
message("board_mscclassobject: usbmsc_classobject failed: %d\n", -ret);
|
||||||
usbmsc_uninitialize(g_composite.mschandle);
|
usbmsc_uninitialize(g_composite.mschandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
check_test_memory_usage("After usbmsc_classobject()");
|
check_test_memory_usage("After usbmsc_classobject()");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user