mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 16:55:16 -04:00
Merge tag 'for-net-2021-06-14' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
Luiz Augusto von Dentz says: ==================== bluetooth pull request for net: - Fix crash on SMP when debug is enabled ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -3229,7 +3229,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
|
||||
{
|
||||
struct l2cap_chan *chan;
|
||||
|
||||
bt_dev_dbg(pchan->conn->hcon->hdev, "pchan %p", pchan);
|
||||
BT_DBG("pchan %p", pchan);
|
||||
|
||||
chan = l2cap_chan_create();
|
||||
if (!chan)
|
||||
@@ -3250,7 +3250,7 @@ static inline struct l2cap_chan *smp_new_conn_cb(struct l2cap_chan *pchan)
|
||||
*/
|
||||
atomic_set(&chan->nesting, L2CAP_NESTING_SMP);
|
||||
|
||||
bt_dev_dbg(pchan->conn->hcon->hdev, "created chan %p", chan);
|
||||
BT_DBG("created chan %p", chan);
|
||||
|
||||
return chan;
|
||||
}
|
||||
@@ -3354,7 +3354,7 @@ static void smp_del_chan(struct l2cap_chan *chan)
|
||||
{
|
||||
struct smp_dev *smp;
|
||||
|
||||
bt_dev_dbg(chan->conn->hcon->hdev, "chan %p", chan);
|
||||
BT_DBG("chan %p", chan);
|
||||
|
||||
smp = chan->data;
|
||||
if (smp) {
|
||||
|
||||
Reference in New Issue
Block a user