SYSRQ: fix double target initialization at module load

This commit is contained in:
Jan Engelhardt
2012-07-11 01:42:39 +02:00
parent 5be4ac8b2b
commit cb8050172a
2 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
HEAD HEAD
==== ====
Fixes:
- SYSRQ: fix double target initialization at module load
Enhancements: Enhancements:
- TARPIT gained IPv6 support - TARPIT gained IPv6 support

View File

@@ -359,10 +359,7 @@ static int __init sysrq_crypto_init(void)
goto fail; goto fail;
do_gettimeofday(&now); do_gettimeofday(&now);
sysrq_seqno = now.tv_sec; sysrq_seqno = now.tv_sec;
ret = xt_register_targets(sysrq_tg_reg, ARRAY_SIZE(sysrq_tg_reg)); return 0;
if (ret < 0)
goto fail;
return ret;
fail: fail:
sysrq_crypto_exit(); sysrq_crypto_exit();