]> git.baikalelectronics.ru Git - kernel.git/commit
[NETLABEL]: Fix lookup logic of netlbl_domhsh_search_def.
authorPavel Emelyanov <xemul@openvz.org>
Wed, 13 Feb 2008 06:15:14 +0000 (22:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2008 06:15:14 +0000 (22:15 -0800)
commitc63aeb9bc5218b1fc9c2eb1a8309f12f30d920ae
treef689952b5544f23bf9cf83d1d69b02fb4abfc131
parent2b9098b9530c8d8e09a756bf4a85fe3a7287b785
[NETLABEL]: Fix lookup logic of netlbl_domhsh_search_def.

Currently, if the call to netlbl_domhsh_search succeeds the
return result will still be NULL.

Fix that, by returning the found entry (if any).

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_domainhash.c