• J. Bruce Fields's avatar
    nfsd4: skip encoder in trivial error cases · b7571e4c
    J. Bruce Fields authored
    Most encoders do nothing in the error case.  But they can still screw
    things up in that case: most errors happen very early in rpc processing,
    possibly before argument fields are filled in and bounds-tested, so
    encoders that do anything other than immediately bail on error can
    easily crash in odd error cases.
    
    So just handle errors centrally most of the time to remove the chance of
    error.
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    b7571e4c
nfs4proc.c 69.7 KB