aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c
diff options
context:
space:
mode:
authorJon Maloy <jon.maloy@ericsson.com>2018-04-03 19:11:19 +0200
committerDavid S. Miller <davem@davemloft.net>2018-04-04 11:33:52 -0400
commitb714295abc59cfa2fe46f9341503d9a7eb790503 (patch)
tree79ccd9dcbd8e0faac72c82cb718139d34a9f1511 /drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c
parentMerge branch 'ipv6-udp-set-dst-cache-for-a-connected-sk-if-current-not-valid' (diff)
downloadlinux-dev-b714295abc59cfa2fe46f9341503d9a7eb790503.tar.xz
linux-dev-b714295abc59cfa2fe46f9341503d9a7eb790503.zip
tipc: Fix missing list initializations in struct tipc_subscription
When an item of struct tipc_subscription is created, we fail to initialize the two lists aggregated into the struct. This has so far never been a problem, since the items are just added to a root object by list_add(), which does not require the addee list to be pre-initialized. However, syzbot is provoking situations where this addition fails, whereupon the attempted removal if the item from the list causes a crash. This problem seems to always have been around, despite that the code for creating this object was rewritten in commit 242e82cc95f6 ("tipc: collapse subscription creation functions"), which is still in net-next. We fix this for that commit by initializing the two lists properly. Fixes: 242e82cc95f6 ("tipc: collapse subscription creation functions") Reported-by: syzbot+0bb443b74ce09197e970@syzkaller.appspotmail.com Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c')
0 files changed, 0 insertions, 0 deletions