Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
science:machinelearning
openamp
openamp-wait-when-no-more-buffer-avail.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openamp-wait-when-no-more-buffer-avail.patch of Package openamp
diff --git a/lib/rpmsg/rpmsg_virtio.c b/lib/rpmsg/rpmsg_virtio.c index cf3ec213..1e360163 100644 --- a/lib/rpmsg/rpmsg_virtio.c +++ b/lib/rpmsg/rpmsg_virtio.c @@ -308,7 +308,7 @@ static int rpmsg_virtio_send_offchannel_raw(struct rpmsg_device *rdev, /* Lock the device to enable exclusive access to virtqueues */ metal_mutex_acquire(&rdev->lock); avail_size = _rpmsg_virtio_get_buffer_size(rvdev); - if (size > avail_size) { + if (avail_size && size > avail_size) { metal_mutex_release(&rdev->lock); return RPMSG_ERR_BUFF_SIZE; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor