mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
xdrgen: Fix the variable-length opaque field decoder template
Ensure that variable-length opaques are decoded into the named field, and do not overwrite the structure itself. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
3bd937b49a
commit
42ba5bd2e2
|
|
@ -2,5 +2,5 @@
|
|||
{% if annotate %}
|
||||
/* member {{ name }} (variable-length opaque) */
|
||||
{% endif %}
|
||||
if (!xdrgen_decode_opaque(xdr, (opaque *)ptr, {{ maxsize }}))
|
||||
if (!xdrgen_decode_opaque(xdr, &ptr->{{ name }}, {{ maxsize }}))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user