]> git.baikalelectronics.ru Git - kernel.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>
Thu, 26 Sep 2013 20:56:53 +0000 (13:56 -0700)
commite01de35a5873f88a08c4c0b73a1766339c5469be
tree485489a2d4b398aa0cd05f6eb05881c3e4dd730e
parent1d1d72c43a6012ec577024270053d83c033df9d9
mei: make me client counters less error prone

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

Cc: <stable@vger.kernel.org> # 3.9+
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