lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 13 Oct 2015 19:46:37 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	ogerlitz@...lanox.com
Cc:	netdev@...r.kernel.org, eli@...lanox.com, amirv@...lanox.com
Subject: Re: [PATCH net-next 1/4] net/mlx5_core: Fix internal error
 detection conditions

From: Or Gerlitz <ogerlitz@...lanox.com>
Date: Tue, 13 Oct 2015 18:44:06 +0300

> +	if (in_fatal(dev) && !health->sick) {
> +		health->sick = 1;
> +		print_health_info(dev);
> +		queue_work(health->wq, &health->work);
>  	}
>  }
>  
> diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
> index 41a3287..cd469b9 100644
> --- a/include/linux/mlx5/driver.h
> +++ b/include/linux/mlx5/driver.h
> @@ -393,6 +393,7 @@ struct mlx5_core_health {
>  	struct timer_list		timer;
>  	u32				prev;
>  	int				miss_counter;
> +	int				sick;
>  	struct workqueue_struct	       *wq;
>  	struct work_struct		work;
>  };
> -- 
> 2.3.7
> 

Please use "bool" and true/false for boolean states.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ