drivers/rtc/rtc-mc13xxx.c: move probe and remove callbacks to .init.text and .exit...
[deliverable/linux.git] / drivers / net / netconsole.c
index ed2a3977c6e781feba473d37b96675c421d68b45..e8882023576b94206d5cc13773c27b3af20761ea 100644 (file)
@@ -307,6 +307,11 @@ static ssize_t store_enabled(struct netconsole_target *nt,
                return err;
        if (enabled < 0 || enabled > 1)
                return -EINVAL;
+       if (enabled == nt->enabled) {
+               printk(KERN_INFO "netconsole: network logging has already %s\n",
+                               nt->enabled ? "started" : "stopped");
+               return -EINVAL;
+       }
 
        if (enabled) {  /* 1 */
 
This page took 0.02363 seconds and 5 git commands to generate.