Bluetooth: gatt: Fix possible NULL pointer dereference
Change-Id: Ica534a516725597c1fae8c8a9f652d85b720774c Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
This commit is contained in:
parent
7dc3d35da6
commit
619ad22c38
1 changed files with 1 additions and 1 deletions
|
@ -1084,7 +1084,7 @@ static int att_find_info(struct bt_conn *conn,
|
|||
int bt_gatt_discover(struct bt_conn *conn,
|
||||
struct bt_gatt_discover_params *params)
|
||||
{
|
||||
if (!conn || !params->func || !params->start_handle ||
|
||||
if (!conn || !params || !params->func || !params->start_handle ||
|
||||
!params->end_handle || params->start_handle > params->end_handle) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue