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)
commitffb208479bd62ab26c29a242faeb1de1c6d5fcdc
treea825cbc6d7ec125cab86e32008acf816c7bb2bc8
parentff2a79a5a934fe0dbb136ffad61f79b5c6385614
AX.25: Fix sysctl registration if !CONFIG_AX25_DAMA_SLAVE

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>
net/ax25/sysctl_net_ax25.c