rtnetlink: rtnl_link_register() sanity test
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 13 Dec 2011 11:38:00 +0000 (11:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Dec 2011 07:39:29 +0000 (02:39 -0500)
commitc63044f0d22a13532047ad04216af45b6ac7fdaf
treef2d7dbcfd8139ef77fcd480176fd9c71b5a0d282
parentb43faac69062f0fc75bd3230d67da64e184232d1
rtnetlink: rtnl_link_register() sanity test

Before adding a struct rtnl_link_ops into link_ops list, check it doesnt
clash with a prior one.

Based on a previous patch from Alexander Smirnov

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c