diff options
author | Xuan Zhuo <[email protected]> | 2021-10-20 19:23:23 +0800 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2021-11-01 05:26:47 -0400 |
commit | fc6d70f40b3d0b3219e2026d05be0409695f620d (patch) | |
tree | 3fb359046740ee13ddfc75f39b563b1590b119d1 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 8d7670f3734eed45bb9d00d8fd1201f662bc667f (diff) |
virtio_ring: check desc == NULL when using indirect with packed
When using indirect with packed, we don't check for allocation failures.
This patch checks that and fall back on direct.
Fixes: 1ce9e6055fa0 ("virtio_ring: introduce packed ring support")
Signed-off-by: Xuan Zhuo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions