mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +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: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
parent
dbdfc09c63
commit
237b8a4331
1 changed files with 3 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue