OSDN Git Service

Null check for irk entry
authorPriti Aghera <paghera@broadcom.com>
Wed, 24 Sep 2014 17:06:40 +0000 (10:06 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 24 Sep 2014 18:02:52 +0000 (11:02 -0700)
commit1cd92393c162afe68b01aafcf7a1d41ab1d21e7b
tree9135553031d0a6d4e76b2ecc3ab5dc1c58aa6713
parent03cb1ad1e063f7353c5098527bbf13ae7d563a7e
Null check for irk entry

When BT is turning off btm_ble_vendor control block is cleaned up.
So irk_entry which points to the first element of irk_list is NULL
Included a null check for irk_entry to prevent stack crash.

Bug 17399097

Change-Id: Ib129f7dd06f9db61cc54257aa4a563fe2c9f41f2
vnd/ble/vendor_ble.c