]> git.baikalelectronics.ru Git - kernel.git/commit
net: udp: fix alignment problem in udp4_seq_show()
authoryangxingwu <xingwu.yang@gmail.com>
Mon, 27 Dec 2021 08:29:51 +0000 (16:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Dec 2021 14:47:14 +0000 (14:47 +0000)
commit42c3ed95735f466a3239fe63307a87708fbe60c4
tree5ab8d44b9ae18dfc7ac04c9334bca20369a2bec4
parentacef1629a2b3d79f5a7c0baa571aa6bbcb2fabf9
net: udp: fix alignment problem in udp4_seq_show()

$ cat /pro/net/udp

before:

  sl  local_address rem_address   st tx_queue rx_queue tr tm->when
26050: 0100007F:0035 00000000:0000 07 00000000:00000000 00:00000000
26320: 0100007F:0143 00000000:0000 07 00000000:00000000 00:00000000
27135: 00000000:8472 00000000:0000 07 00000000:00000000 00:00000000

after:

   sl  local_address rem_address   st tx_queue rx_queue tr tm->when
26050: 0100007F:0035 00000000:0000 07 00000000:00000000 00:00000000
26320: 0100007F:0143 00000000:0000 07 00000000:00000000 00:00000000
27135: 00000000:8472 00000000:0000 07 00000000:00000000 00:00000000

Signed-off-by: yangxingwu <xingwu.yang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c