Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
avf: don't memcpy if adminq output buffer size is 0
[vpp.git]
/
src
/
plugins
/
avf
/
device.c
diff --git
a/src/plugins/avf/device.c
b/src/plugins/avf/device.c
index
139f1c9
..
fd17398
100644
(file)
--- a/
src/plugins/avf/device.c
+++ b/
src/plugins/avf/device.c
@@
-485,7
+485,7
@@
retry:
goto done;
}
- if (d->flags & AVF_AQ_F_BUF)
+ if (
out_len &&
d->flags & AVF_AQ_F_BUF)
{
void *buf = ad->arq_bufs + ad->arq_next_slot * AVF_MBOX_BUF_SZ;
clib_memcpy_fast (out, buf, out_len);