mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
NFSv4.1: Fix a kfree() of uninitialised pointers in decode_cb_sequence_args
commitd8ba1f9714upstream. If the call to decode_rc_list() fails due to a memory allocation error, then we need to truncate the array size to ensure that we only call kfree() on those pointer that were allocated. Reported-by: David Ramos <daramos@stanford.edu> Fixes:4aece6a19c("nfs41: cb_sequence xdr implementation") Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c679cbba9
commit
5c88a9da64
1 changed files with 3 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue