summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2018-11-06 05:40:54 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-23 05:19:39 -0500
commit649cfc2bdfeeb98ff7d8fdff0af3f8fb9c8da50f (patch)
tree8065841baf7a7126c64a6bb5e0e9f13f9b3f11c9 /tools/perf/scripts/python
parentc45fbdf24c61a7b7a37f1b3bbd46f054637a3627 (diff)
downloadlinux-649cfc2bdfeeb98ff7d8fdff0af3f8fb9c8da50f.tar.gz
linux-649cfc2bdfeeb98ff7d8fdff0af3f8fb9c8da50f.zip
media: coda: fix memory corruption in case more than 32 instances are opened
The ffz() return value is undefined if the instance mask does not contain any zeros. If it returned 32, the following set_bit would corrupt the debugfs_root pointer. Switch to IDA for context index allocation. This also removes the artificial 32 instance limit for all except CodaDx6. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions