From 3e528cb7bae00ba0d73def6645d0f2fa906ee3e8 Mon Sep 17 00:00:00 2001 From: Pawel Moll Date: Thu, 31 Jul 2014 16:16:37 +0100 Subject: [PATCH] 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-format-patch failed