From: Philipp Zabel
Date: Wed, 25 Jul 2012 12:16:58 +0000 (-0300)
Subject: [media] media: coda: keep track of active instances
X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~3^2^2~131
X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e11f3e6ef64726c64dae435f7059715adf5de2ff;p=pandora-kernel.git
[media] media: coda: keep track of active instances
Determining the next free instance just by incrementing and decrementing
an instance counter does not work: if there are two instances opened,
0 and 1, and instance 0 is released, the next call to coda_open will
create a new instance with index 1, but instance 1 is already in use.
Instead, scan a bitfield of active instances to determine the first
free instance index.
Signed-off-by: Philipp Zabel
Tested-by: Javier Martin
Signed-off-by: Mauro Carvalho Chehab
---
Reading git-diff-tree failed