]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: make compare exist all the time
authorGao feng <gaofeng@cn.fujitsu.com>
Thu, 13 Jun 2013 02:05:38 +0000 (10:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2013 07:45:48 +0000 (00:45 -0700)
commitde8bec61ea2de9660c589401acf509438493738d
treea4a0e2abd432397ccca05b1e5144055cd6479649
parente1447e5f0fd442349181f016a488145ca628a0ac
netlink: make compare exist all the time

Commit 3355f2f2d8c997589e2bfc9f3d3b64484de1dbda
"netlink: Add compare function for netlink_table"
only set compare at the time we create kernel netlink,
and reset compare to NULL at the time we finially
release netlink socket, but netlink_lookup wants
the compare exist always.

So we should set compare after we allocate nl_table,
and never reset it. make comapre exist all the time.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c