OSDN Git Service

eatt: Fix for the crash on incoming channel creation
authorŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
Mon, 21 Jun 2021 16:11:56 +0000 (16:11 +0000)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 6 Jul 2021 11:05:39 +0000 (13:05 +0200)
commit8eb2d3606506055e5ab6a695881d8c8b8753c833
tree800774bcc1a415c978a8babb94659594781e56ca
parent01915cf925d6d0c8c1c07a3e84fed75188fba4bc
eatt: Fix for the crash on incoming channel creation

It fixes:

signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: '[FATAL:eatt_impl.h(142)] Check failed: eatt_dev->eatt_tcb_.

Crash could happen when Android is connects at first as a central device
connection to peer which supports EATT and after reconnection it is peer
initiating ecoc (e.g. Android is peripheral or peer is faster with ecoc
connection request). At that point eatt_dev is there but eatt_tcb_ is
not.

Bug: 159786353
Bug: 191313013
Tag: #feature
Test: atest --host net_test_eatt
Sponsor: jpawlowski@

Merged-In: Ic5e8c027dc45eec942457f09c987ec64cfafb761
Change-Id: Ic5e8c027dc45eec942457f09c987ec64cfafb761
stack/eatt/eatt_impl.h
stack/test/eatt/eatt_test.cc