summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/hdlc_raw_eth.c
diff options
context:
space:
mode:
authorXie He <xie.he.0141@gmail.com>2020-07-05 17:45:21 -0700
committerDavid S. Miller <davem@davemloft.net>2020-07-06 12:16:21 -0700
commit9dc829a135fb5927f1519de11286e2bbb79f5b66 (patch)
tree45c4bd493bec432250eb48c4fb931fdb2d38f212 /drivers/net/wan/hdlc_raw_eth.c
parent0f57a1e522f413e87852e632f55de4723e511939 (diff)
drivers/net/wan/lapbether: Fixed the value of hard_header_len
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, then this driver will prepend a length field of 2 bytes, then the underlying Ethernet device will prepend its own header. So, the header length required should be: -1 + 3 + 2 + "the header length needed by the underlying device". This patch fixes kernel panic when this driver is used with AF_PACKET SOCK_DGRAM sockets. Signed-off-by: Xie He <xie.he.0141@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/hdlc_raw_eth.c')
0 files changed, 0 insertions, 0 deletions