Skip to content
Snippets Groups Projects
Commit 41ba5493 authored by Prateek Shrivastava's avatar Prateek Shrivastava
Browse files

lrdp_v2: vidc: Add check before parsing queue info

In some cases command or message queue might have
data which cannot be parsed, this should not hinder
the parsing or the other queue.

Change-Id: If2b0f5f62f38c266ce28f2389dc86e14f2da77f0
parent 1b0b6dc1
No related branches found
No related tags found
No related merge requests found
"""
Copyright (c) 2017, The Linux Foundation. All rights reserved.
Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
......@@ -695,7 +695,10 @@ class DumpVidc(RamParser):
self.queue_info.write('\nCMD QUEUE\n=========\n')
q_cmd = head + self.ramdump.field_offset('struct venus_hfi_device','iface_queues[0]')
self.read_interface_queue(q_cmd)
try:
self.read_interface_queue(q_cmd)
except:
self.queue_info.write('\n Unable to read command queue');
self.queue_info.close()
......@@ -703,7 +706,10 @@ class DumpVidc(RamParser):
self.queue_info.write('\nMSG QUEUE\n=========\n')
q_msg = head + self.ramdump.field_offset('struct venus_hfi_device','iface_queues[1]')
self.read_interface_queue(q_msg)
try:
self.read_interface_queue(q_msg)
except:
self.queue_info.write('\n Unable to read message queue');
self.queue_info.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment