aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMarek Szyprowski <[email protected]>2017-02-03 12:05:18 -0200
committerMauro Carvalho Chehab <[email protected]>2017-04-05 15:40:04 -0300
commit7c96f59e0cafe5777c533b147128a577dee1564b (patch)
tree10c187059741e75c34a5117cadcdf9bf17b137f6 /tools/perf/scripts/python
parent0fad6e2372074e69b7c2048fec86f5a4bcbb3edb (diff)
[media] s5p-mfc: Fix initialization of internal structures
Initialize members of the internal device and context structures as early as possible to avoid access to uninitialized objects on initialization failures. If loading firmware or creating of the hardware instance fails, driver will access device or context queue in error handling path, which might not be initialized yet, what causes kernel panic. Fix this by moving initialization of all static members as early as possible. Signed-off-by: Marek Szyprowski <[email protected]> Acked-by: Andrzej Hajda <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Tested-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions