]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
AX.25: Fix sysctl registration if !CONFIG_AX25_DAMA_SLAVE
authorRalf Baechle <ralf@linux-mips.org>
Thu, 28 Aug 2008 05:28:53 +0000 (22:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Sep 2008 11:44:23 +0000 (04:44 -0700)
commite7ac1b6acc86edf3b0d78647a452636aa2e77f41
tree02c8b913edd9f649cb8b7fd872e91273ae298fd8
parent6fcf36152391ff2efe2d8ed84769090a0bb0d432
AX.25: Fix sysctl registration if !CONFIG_AX25_DAMA_SLAVE

[ Upstream commit ffb208479bd62ab26c29a242faeb1de1c6d5fcdc ]

Since 49ffcf8f99e8d33ec8afb450956804af518fd788 ("sysctl: update
sysctl_check_table") setting struct ctl_table.procname = NULL does no
longer work as it used to the way the AX.25 code is expecting it to
resulting in the AX.25 sysctl registration code to break if
CONFIG_AX25_DAMA_SLAVE was not set as in some distribution kernels.
Kernel releases from 2.6.24 are affected.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ax25/sysctl_net_ax25.c