> On Dec 25, 2018, at 10:18 PM, Kangjie Lu wrote:
>
> xdr_inline_decode() could fail.
NAK: xdr_inline_decode cannot fail if its second argument is zero.
> When it fails, the return value is NULL
> and should not be dereferenced.
> The fix checks if xdr_inline_decode fails, and if so, return
xdr_inline_decode() could fail. When it fails, the return value is NULL
and should not be dereferenced.
The fix checks if xdr_inline_decode fails, and if so, returns.
Signed-off-by: Kangjie Lu
---
net/sunrpc/xprtrdma/backchannel.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/sunrpc/