aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdrom
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2018-03-27 18:21:57 -0700
committerDavid S. Miller <davem@davemloft.net>2018-03-29 14:10:30 -0400
commit6635f311eab40b6d97eb884f371be41d0f5a3ed6 (patch)
treeabfa6b3efeacc7c14c1f19e0ac1db52c6ae832a7 /drivers/cdrom
parentnet: Move call_fib_rule_notifiers up in fib_nl_newrule (diff)
downloadlinux-dev-6635f311eab40b6d97eb884f371be41d0f5a3ed6.tar.xz
linux-dev-6635f311eab40b6d97eb884f371be41d0f5a3ed6.zip
net/ipv4: Move call_fib_entry_notifiers up for new routes
Move call to call_fib_entry_notifiers for new IPv4 routes to right before the call to fib_insert_alias. At this point the only remaining failure path is memory allocations in fib_insert_node. Handle that very unlikely failure with a call to call_fib_entry_notifiers to tell drivers about it. At this point notifier handlers can decide the fate of the new route with a clean path to delete the potential new entry if the notifier returns non-0. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/cdrom')
0 files changed, 0 insertions, 0 deletions