Static code scan issues seen in File: /subsys/bluetooth/host/gatt.c
Category: Memory - corruptions
Function: bt_gatt_discover
Component: Bluetooth
CID: 197464
Please fix or provide comments to square it off in coverity in the link: https://scan9.coverity.com/reports.htm#v32951/p12996