usb: provide usb reference to DisplayPort shutdown thread
Passes usb object reference to thread creation of mDisplayPortShutdownHelper so that it can properly call DisplayPort shutdown method instead of calling on NULL reference. Test: manual test on device Bug: 278395605 Change-Id: Ie4dabb5e3ae9065f57cc0fbf2593fbe399097472
This commit is contained in:
parent
967e042adf
commit
cc50d99508
1 changed files with 1 additions and 1 deletions
|
@ -1347,7 +1347,7 @@ void Usb::shutdownDisplayPortPoll() {
|
|||
|
||||
// Shutdown thread, make sure to rewrite hpd because file no longer exists.
|
||||
write(mDisplayPortShutdown, &flag, sizeof(flag));
|
||||
if (pthread_create(&mDisplayPortShutdownHelper, NULL, shutdownDisplayPortPollWork, NULL)) {
|
||||
if (pthread_create(&mDisplayPortShutdownHelper, NULL, shutdownDisplayPortPollWork, this)) {
|
||||
ALOGE("pthread creation failed %d", errno);
|
||||
}
|
||||
writeDisplayPortAttributeOverride("hpd", "0");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue