]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: dvm: Fix probable mask then right shift defect
authorJoe Perches <joe@perches.com>
Mon, 27 Oct 2014 05:25:03 +0000 (22:25 -0700)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Oct 2014 10:53:07 +0000 (12:53 +0200)
commitb9fb6cc68c38665bba9ef459d1bcd981015538b9
treeb8d932e23d842018f5c915cfaa9a068c8db3a926
parent9e1b096aedd3fca0f1f6d7c759bdd4cf01349a17
iwlwifi: dvm: Fix probable mask then right shift defect

Precedence of & and >> is not the same and is not left to right.
shift has higher precedence and should be done after the mask.

Add parentheses around the mask.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/dvm/lib.c