Skip to content
Draft
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
6 changes: 4 additions & 2 deletions lib/rpmsg/rpmsg_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,10 @@ static void rpmsg_virtio_rx_callback(struct virtqueue *vq)
status = ept->cb(ept, RPMSG_LOCATE_DATA(rp_hdr),
rp_hdr->len, rp_hdr->src, ept->priv);

RPMSG_ASSERT(status >= 0,
"unexpected callback status\r\n");
if (status < 0) {
metal_err("ept %s, return status %d\r\n", ept->name, status);
RPMSG_ASSERT(0, "unexpected callback status\r\n");
}
}

metal_mutex_acquire(&rdev->lock);
Expand Down