From b47d14a273640fbae6319de200ae6a9d52e4330c Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 12 Jun 2015 15:48:11 +0200 Subject: [PATCH] Bluetooth: Fix NULL pointer dereference in flush_cb conn was never set in struct flush_data passed to flush_cb. Change-Id: I2a16479bf7660a96f705d1194245da02ee6eeff5 Signed-off-by: Szymon Janc --- net/bluetooth/att.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/att.c b/net/bluetooth/att.c index de9b3f98314..d9f951d9c9a 100644 --- a/net/bluetooth/att.c +++ b/net/bluetooth/att.c @@ -1023,6 +1023,7 @@ static uint8_t att_exec_write_rsp(struct bt_conn *conn, uint8_t flags) return BT_ATT_ERR_UNLIKELY; } + data.conn = conn; data.flags = flags; /* Apply to the whole database */