diff options
Diffstat (limited to 'net/bluetooth/rfcomm')
-rw-r--r-- | net/bluetooth/rfcomm/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index 94f457360560..10cc13cfae6c 100644 --- a/net/bluetooth/rfcomm/core.c +++ b/net/bluetooth/rfcomm/core.c | |||
@@ -1567,7 +1567,7 @@ static int rfcomm_recv_frame(struct rfcomm_session *s, struct sk_buff *skb) | |||
1567 | 1567 | ||
1568 | /* Trim FCS */ | 1568 | /* Trim FCS */ |
1569 | skb->len--; skb->tail--; | 1569 | skb->len--; skb->tail--; |
1570 | fcs = *(u8 *) skb->tail; | 1570 | fcs = *(u8 *)skb_tail_pointer(skb); |
1571 | 1571 | ||
1572 | if (__check_fcs(skb->data, type, fcs)) { | 1572 | if (__check_fcs(skb->data, type, fcs)) { |
1573 | BT_ERR("bad checksum in packet"); | 1573 | BT_ERR("bad checksum in packet"); |