Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverify fixes in QDMA driver #193

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rajkumar-xilinx
Copy link

@rajkumar-xilinx rajkumar-xilinx commented Mar 3, 2023

CID 211019 : remove dead code in qdma_intr.c | data_intr_direct() CID 249237 : missing_lock: Accessing reg_info->trig_mode without holding lock CID 249253 : missing_lock: Accessing descq->q_state without holding lock CID 257805 : Pointer &xdev->conf.qsets_max points to an object whose
effective type is unsigned short (16 bits, unsigned) but is
dereferenced as a wider unsigned int (32 bits, unsigned). This may
lead to memory corruption.
CID 257809 : missing_lock: Accessing descq->cmpt_cidx_info.trig_mode without
holding lock qdma_descq.lock
CID 257810 : missing_lock: Accessing descq->conf.cmpl_trig_mode without holding
lock qdma_descq.lock.
CID 257811 : missing_lock: Accessing descq->conf.cmpl_trig_mode without holding
lock qdma_descq.lock
CID 216748: Uninitialized scalar variable

CID 211019 : remove dead code in qdma_intr.c | data_intr_direct()
CID 249237 : missing_lock: Accessing reg_info->trig_mode without holding lock
CID 249253 : missing_lock: Accessing descq->q_state without holding lock
CID 257805 : Pointer &xdev->conf.qsets_max points to an object whose
             effective type is unsigned short (16 bits, unsigned) but is
             dereferenced as a wider unsigned int (32 bits, unsigned). This may
             lead to memory corruption.
CID 257809 : missing_lock: Accessing descq->cmpt_cidx_info.trig_mode without
	     holding lock qdma_descq.lock
CID 257810 : missing_lock: Accessing descq->conf.cmpl_trig_mode without holding
	     lock qdma_descq.lock.
CID 257811 : missing_lock: Accessing descq->conf.cmpl_trig_mode without holding
	     lock qdma_descq.lock

Signed-off-by: Rajkumar Rampelli <[email protected]>
@rajkumar-xilinx
Copy link
Author

All QDMA driver coverity fixes can be found at https://scan.coverity.com/projects/xilinx-xrt-5f9a8a18-9d52-4cb2-b2ac-2d8d1b59477f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant