mei: make me client counters less error prone
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 2 Sep 2013 10:29:45 +0000 (13:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:13:10 +0000 (07:13 -0700)
commitcb4af713f95f049056c25e0c18f652c3338c2bc7
tree558b60da77c649ceebc0f92e8296291ecbc8a6ee
parent81fbb94d1fbdad184ca4091da4cae87a92dbf3c7
mei: make me client counters less error prone

commit 1aee351a739153529fbb98ee461777b2abd5e1c9 upstream.

1. u8 counters are prone to hard to detect overflow:
 make them unsigned long to match bit_ functions argument type

2. don't check me_clients_num for negativity, it is unsigned.

3. init all the me client counters from one place

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hbm.c
drivers/misc/mei/mei_dev.h