Bluetooth: Fix wrong buffer allocation result

Change-Id: I5db2e320e3fb83b9ea41c03053c3ce5b0bbf2bcd
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2015-08-26 11:34:13 +03:00 committed by Anas Nashif
commit 7a504e9a62

View file

@ -152,7 +152,7 @@ static uint8_t att_mtu_req(struct bt_conn *conn, struct bt_buf *buf)
}
pdu = bt_att_create_pdu(conn, BT_ATT_OP_MTU_RSP, sizeof(*rsp));
if (!buf) {
if (!pdu) {
return BT_ATT_ERR_UNLIKELY;
}