sysctl: sysctl_binary.c Fix compilation when !CONFIG_NET
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 12 Nov 2009 08:35:55 +0000 (00:35 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 12 Nov 2009 09:25:43 +0000 (01:25 -0800)
commit63395b65972c07edce595c9cc8a983016738cdac
tree4ba406874098df734119d282ba634337c7541ba2
parent2fb10732c3b3c9671b1a391996ce7e551876c25e
sysctl: sysctl_binary.c Fix compilation when !CONFIG_NET

dev_get_by_index does not exist when the network stack is not
compiled in, so only include the code to follow wild card paths
when the network stack is present.

I have shuffled the code around a little to make it clear
that dev_put is called after dev_get_by_index showing that
there is no leak.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
kernel/sysctl_binary.c