diff options
Diffstat (limited to 'module/spl')
-rw-r--r-- | module/spl/spl-xdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/spl/spl-xdr.c b/module/spl/spl-xdr.c index feaa59e4f..16e42c336 100644 --- a/module/spl/spl-xdr.c +++ b/module/spl/spl-xdr.c @@ -186,7 +186,7 @@ xdrmem_enc_bytes(XDR *xdrs, caddr_t cp, const uint_t cnt) if (xdrs->x_addr > xdrs->x_addr_end) return FALSE; - if (xdrs->x_addr_end - xdrs->x_addr > size) + if (xdrs->x_addr_end - xdrs->x_addr < size) return FALSE; memcpy(xdrs->x_addr, cp, cnt); @@ -215,7 +215,7 @@ xdrmem_dec_bytes(XDR *xdrs, caddr_t cp, const uint_t cnt) if (xdrs->x_addr > xdrs->x_addr_end) return FALSE; - if (xdrs->x_addr_end - xdrs->x_addr > size) + if (xdrs->x_addr_end - xdrs->x_addr < size) return FALSE; memcpy(cp, xdrs->x_addr, cnt); |