diff options
| author | Philipp Zabel <[email protected]> | 2018-11-06 05:40:54 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-11-23 05:19:39 -0500 |
| commit | 649cfc2bdfeeb98ff7d8fdff0af3f8fb9c8da50f (patch) | |
| tree | 8065841baf7a7126c64a6bb5e0e9f13f9b3f11c9 /tools | |
| parent | c45fbdf24c61a7b7a37f1b3bbd46f054637a3627 (diff) | |
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 <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions