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

Fix coverity issues reported in QDMA driver #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,7 @@ static int dump_eqdma_cpm5_context(struct qdma_descq_context *queue_context,
int n;
int len = 0;
int rv;
char banner[DEBGFS_LINE_SZ];
char banner[DEBGFS_LINE_SZ] = "";

if (queue_context == NULL) {
qdma_log_error("%s: queue_context is NULL, err:%d\n",
Expand Down Expand Up @@ -2652,7 +2652,7 @@ static int dump_eqdma_cpm5_intr_context(struct qdma_indirect_intr_ctxt
int n;
int len = 0;
int rv;
char banner[DEBGFS_LINE_SZ];
char banner[DEBGFS_LINE_SZ] = "";

eqdma_cpm5_fill_intr_ctxt(intr_ctx);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ static int dump_cpm4_context(struct qdma_descq_context *queue_context,
int n;
int len = 0;
int rv;
char banner[DEBGFS_LINE_SZ];
char banner[DEBGFS_LINE_SZ] = "";

if (queue_context == NULL) {
qdma_log_error("%s: queue_context is NULL, err:%d\n",
Expand Down Expand Up @@ -1925,7 +1925,7 @@ static int dump_cpm4_intr_context(struct qdma_indirect_intr_ctxt *intr_ctx,
int n;
int len = 0;
int rv;
char banner[DEBGFS_LINE_SZ];
char banner[DEBGFS_LINE_SZ] = "";

qdma_cpm4_fill_intr_ctxt(intr_ctx);

Expand Down