Skip to content
Snippets Groups Projects
Commit 73270195 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp_v2: vidc: Add check before parsing queue info"

parents c11041f1 41ba5493
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 Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are modification, are permitted provided that the following conditions are
...@@ -695,7 +695,10 @@ class DumpVidc(RamParser): ...@@ -695,7 +695,10 @@ class DumpVidc(RamParser):
self.queue_info.write('\nCMD QUEUE\n=========\n') self.queue_info.write('\nCMD QUEUE\n=========\n')
q_cmd = head + self.ramdump.field_offset('struct venus_hfi_device','iface_queues[0]') 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() self.queue_info.close()
...@@ -703,7 +706,10 @@ class DumpVidc(RamParser): ...@@ -703,7 +706,10 @@ class DumpVidc(RamParser):
self.queue_info.write('\nMSG QUEUE\n=========\n') self.queue_info.write('\nMSG QUEUE\n=========\n')
q_msg = head + self.ramdump.field_offset('struct venus_hfi_device','iface_queues[1]') 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() 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