-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ upstream commit 365ec3c4fe599048c67cc79817ae9dfa090753cc ] ASan reported issues in this driver. rte_rawdev_obj_t context object points at a uint16_t. skeleton_rawdev_enqueue_bufs() and skeleton_rawdev_dequeue_bufs() were incorrectly casting to an int. The enqueue/dequeue selftest had a leak on the enqueued string and was wrong in passing a rte_rawdev_buf pointer array. Fix this by allocating buffers on the stack and check that returned string is the expected one. Bugzilla ID: 999 Fixes: 61c592a ("raw/skeleton: introduce skeleton rawdev driver") Fixes: 55ca1b0 ("raw/skeleton: add test cases") Signed-off-by: David Marchand <david.marchand@redhat.com> Tested-by: Yu Jiang <yux.jiang@intel.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
- Loading branch information
1 parent
fe4b055
commit 7dd9b2a
Showing
2 changed files
with
22 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters