]> Git Repo - linux.git/commit
mwifiex: fix comparison expression
authorAndrzej Hajda <[email protected]>
Mon, 21 Sep 2015 13:33:53 +0000 (15:33 +0200)
committerDavid S. Miller <[email protected]>
Tue, 22 Sep 2015 23:14:32 +0000 (16:14 -0700)
commitcc7514985919238ef7ce94e80f0d0ad87193de47
tree27a735aefb700ee880bc7520e9cf5bb6db9ee674
parent94926121692381247090b35ec68aed124260f05e
mwifiex: fix comparison expression

To avoid underflows signed variables should be used in expression.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda <[email protected]>
Acked-by: Amitkumar Karwar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/wireless/mwifiex/11n_rxreorder.c
This page took 0.0566 seconds and 4 git commands to generate.