diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2013-09-02 12:29:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 22:56:53 +0200 |
commit | 1aee351a739153529fbb98ee461777b2abd5e1c9 (patch) | |
tree | 485489a2d4b398aa0cd05f6eb05881c3e4dd730e /drivers/misc/dummy-irq.c | |
parent | Linux 3.12-rc2 (diff) | |
download | linux-1aee351a739153529fbb98ee461777b2abd5e1c9.tar.xz linux-1aee351a739153529fbb98ee461777b2abd5e1c9.zip |
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>
Diffstat (limited to 'drivers/misc/dummy-irq.c')
0 files changed, 0 insertions, 0 deletions