diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-07-13 22:41:31 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-08-11 20:49:16 +0200 |
commit | 3f19ffb2f924db5b0925c77818d18ac1f6f08a44 (patch) | |
tree | 7010df3f9299258abb030a3171ed5d71a9d5c57b /net/bluetooth/hci_core.c | |
parent | Bluetooth: btmtk: Fix kernel crash when processing coredump (diff) | |
download | linux-3f19ffb2f924db5b0925c77818d18ac1f6f08a44.tar.xz linux-3f19ffb2f924db5b0925c77818d18ac1f6f08a44.zip |
Bluetooth: af_bluetooth: Make BT_PKT_STATUS generic
This makes the handling of BT_PKT_STATUS more generic so it can be
reused by sockets other than SCO like BT_DEFER_SETUP, etc.
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index bd90caad4804..0fefa6788911 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -3895,7 +3895,7 @@ static void hci_scodata_packet(struct hci_dev *hdev, struct sk_buff *skb) if (conn) { /* Send to upper protocol */ - bt_cb(skb)->sco.pkt_status = flags & 0x03; + hci_skb_pkt_status(skb) = flags & 0x03; sco_recv_scodata(conn, skb); return; } else { |