From: Rasmus Villemoes Date: Wed, 2 Jul 2014 13:49:46 +0000 (-0300) Subject: [media] staging: omap4iss: Fix type of struct iss_device::crashed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6e58110da131a866f26b3860aea746de134318b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] staging: omap4iss: Fix type of struct iss_device::crashed The crashed member of struct iss_device is documented to be a bitmask, but a bool doesn't hold that many (usable) bits. Lines 589 and 659 of iss.c strongly suggest that "unsigned int" was meant (the same type as struct iss_pipeline::entities). Currently, any crashed entity will be blamed on index 0, which is unlikely to be what was intended. Signed-off-by: Rasmus Villemoes Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/omap4iss/iss.h b/drivers/staging/media/omap4iss/iss.h index 05cd9bf3b41f..734cfeeb0314 100644 --- a/drivers/staging/media/omap4iss/iss.h +++ b/drivers/staging/media/omap4iss/iss.h @@ -97,7 +97,7 @@ struct iss_device { u64 raw_dmamask; struct mutex iss_mutex; /* For handling ref_count field */ - bool crashed; + unsigned int crashed; int has_context; int ref_count;