]> git.baikalelectronics.ru Git - kernel.git/commit
AX.25: Fix sysctl registration if !CONFIG_AX25_DAMA_SLAVE
authorRalf Baechle <ralf@linux-mips.org>
Wed, 6 Aug 2008 01:46:57 +0000 (18:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Aug 2008 01:46:57 +0000 (18:46 -0700)
commit4c214bdb8a77a24c155cd7021088e8776e26c389
treea825cbc6d7ec125cab86e32008acf816c7bb2bc8
parent2bd3c8ef5439829aaeb9e5be55f727bccacae594
AX.25: Fix sysctl registration if !CONFIG_AX25_DAMA_SLAVE

Since 32de336d57b89d7a9da5bdab714798bce193c8a0 ("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>
net/ax25/sysctl_net_ax25.c