aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2013-05-28 16:34:23 -0400
committerDavid S. Miller <davem@davemloft.net>2013-05-29 02:49:06 -0400
commit25b6e14881e7861bb720a4624dcaf5f37854fc70 (patch)
tree8cd7aabe39f00ebf33ffd0abe1785cb84d28b4c0
parent75538c2b85cf22eb9af6adfaf26ed7219025adeb (diff)
isdn: Correct comparison of skb->tail and skb-transport_header
This corrects an regression introduced by "net: Use 16bits for *_headers fields of struct skbuff" when NET_SKBUFF_DATA_USES_OFFSET is not set. In that case skb->tail will be a pointer whereas skb->transport_header will be an offset from head. This is corrected by using wrappers that ensure that the comparison is always between pointers. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/isdn/i4l/isdn_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/i4l/isdn_net.c b/drivers/isdn/i4l/isdn_net.c
index 88d657dff474..8b98d53d9976 100644
--- a/drivers/isdn/i4l/isdn_net.c
+++ b/drivers/isdn/i4l/isdn_net.c
@@ -885,7 +885,7 @@ isdn_net_log_skb(struct sk_buff *skb, isdn_net_local *lp)
885 885
886 addinfo[0] = '\0'; 886 addinfo[0] = '\0';
887 /* This check stolen from 2.1.72 dev_queue_xmit_nit() */ 887 /* This check stolen from 2.1.72 dev_queue_xmit_nit() */
888 if (p < skb->data || skb->network_header >= skb->tail) { 888 if (p < skb->data || skb_network_header(skb) >= skb_tail_pointer(skb)) {
889 /* fall back to old isdn_net_log_packet method() */ 889 /* fall back to old isdn_net_log_packet method() */
890 char *buf = skb->data; 890 char *buf = skb->data;
891 891