[PATCH] bluetooth: 6lowpan: fix use after free in chan_suspend/resume

2017-03-28 Thread Michael Scott
spend/resume was called. So, this generates a "use after free" issue that was noticed while running kernel tests with KASAN debug enabled. Let's eliminate the status field entirely as we can use the channel tx_credits to indicate whether we should return EAGAIN when handling packets. Si

[PATCH] bluetooth: 6lowpan: fix delay work init in add_peer_chan()

2017-03-28 Thread Michael Scott
han() know when a new lowpan_btle_dev is passed in so that it only performs the delay work initialization when needed. Signed-off-by: Michael Scott --- net/bluetooth/6lowpan.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/net/bluetooth/6lowpan.c b/net/blueto