]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:17:55 +0000 (07:17 -0700)
commitddb51b8d96ede434782d1b7fab0bab32bd4d7eb5
tree756f0e73b81484f204203d07d87e050c72020f63
parent60e49ee0131a5e94249301d4c21f833b65f46813
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