summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorXie He <xie.he.0141@gmail.com>2020-08-08 19:35:48 -0700
committerDavid S. Miller <davem@davemloft.net>2020-08-11 10:32:05 -0700
commitc79f428d6f14e754503fa7a3145d62039ccd05c9 (patch)
tree7771509e899ef8b08b96552eb21db6d56fbb6a20 /.clang-format
parentb06c19d9f827f6743122795570bfc0c72db482b0 (diff)
drivers/net/wan/x25_asy: Added needed_headroom and a skb->len check
1. Added a skb->len check This driver expects upper layers to include a pseudo header of 1 byte when passing down a skb for transmission. This driver will read this 1-byte header. This patch added a skb->len check before reading the header to make sure the header exists. 2. Added needed_headroom When this driver transmits data, first this driver will remove a pseudo header of 1 byte, then the lapb module will prepend the LAPB header of 2 or 3 bytes. So the value of needed_headroom in this driver should be 3 - 1. Cc: Willem de Bruijn <willemdebruijn.kernel@gmail.com> Cc: Martin Schiller <ms@dev.tdt.de> Signed-off-by: Xie He <xie.he.0141@gmail.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions