From: Pawel Moll Date: Thu, 31 Jul 2014 15:16:37 +0000 (+0100) Subject: bus: arm-ccn: Fix error handling at event allocation X-Git-Tag: omap-for-v3.17/fixes-against-rc2~119^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e528cb7bae00ba0d73def6645d0f2fa906ee3e8;p=pandora-kernel.git bus: arm-ccn: Fix error handling at event allocation The bitfield allocation function returns error condition as a negative value, but in two cases its result was assigned to an unsigned member of the hw_perf_event structure, thus the error would not be ever detected. Fixed by using an intermediate, signed variable. Reported-by: Dan Carpenter Signed-off-by: Pawel Moll Signed-off-by: Olof Johansson --- Reading git-diff-tree failed