]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/intel/fm10k/fm10k_main.c
fm10k: use a BITMAP for flags to avoid race conditions
[karo-tx-linux.git] / drivers / net / ethernet / intel / fm10k / fm10k_main.c
index 5bb233a9614c1cc172d87a7f40bc68003f4af673..f9612a6b852403c1dd06aa73ba7562db2b2382ef 100644 (file)
@@ -1,5 +1,5 @@
 /* Intel(R) Ethernet Switch Host Interface Driver
- * Copyright(c) 2013 - 2016 Intel Corporation.
+ * Copyright(c) 2013 - 2017 Intel Corporation.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -34,7 +34,7 @@ const char fm10k_driver_version[] = DRV_VERSION;
 char fm10k_driver_name[] = "fm10k";
 static const char fm10k_driver_string[] = DRV_SUMMARY;
 static const char fm10k_copyright[] =
-       "Copyright (c) 2013 - 2016 Intel Corporation.";
+       "Copyright(c) 2013 - 2017 Intel Corporation.";
 
 MODULE_AUTHOR("Intel Corporation, <linux.nics@intel.com>");
 MODULE_DESCRIPTION(DRV_SUMMARY);
@@ -1193,7 +1193,7 @@ void fm10k_tx_timeout_reset(struct fm10k_intfc *interface)
        /* Do the reset outside of interrupt context */
        if (!test_bit(__FM10K_DOWN, &interface->state)) {
                interface->tx_timeout_count++;
-               interface->flags |= FM10K_FLAG_RESET_REQUESTED;
+               set_bit(FM10K_FLAG_RESET_REQUESTED, interface->flags);
                fm10k_service_event_schedule(interface);
        }
 }