summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-07-02 10:49:46 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-26 15:04:09 -0300
commitc6e58110da131a866f26b3860aea746de134318b (patch)
treeb83b82606963b7e348d26ecf67dcfda652950a61
parent56a65a1eb0151c60f4fd059e8e47cb4c98fec871 (diff)
downloadlinux-c6e58110da131a866f26b3860aea746de134318b.tar.gz
linux-c6e58110da131a866f26b3860aea746de134318b.tar.bz2
linux-c6e58110da131a866f26b3860aea746de134318b.zip
[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 <linux@rasmusvillemoes.dk> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/staging/media/omap4iss/iss.h2
1 files changed, 1 insertions, 1 deletions
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;