]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipmr: move the tbl id check in ipmr_new_table
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Sat, 21 Nov 2015 14:57:24 +0000 (15:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Nov 2015 20:06:37 +0000 (15:06 -0500)
commitef55bd1232737c9149cac80836caeaefb6fa842c
tree1480a9304cdc5fd6825cce5dd2a9275e74520ee7
parent51b3853e43e0a6038cfbd5c4a779c2aca9078d1b
net: ipmr: move the tbl id check in ipmr_new_table

Move the table id check in ipmr_new_table and make it return error
pointer. We need this change for the upcoming netlink table manipulation
support in order to avoid code duplication and a race condition.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c