summaryrefslogtreecommitdiff
path: root/fs/nfs/pnfs_dev.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-02-12 01:27:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-07 01:52:58 +0300
commit70bcf9f418ebefe6c862fb1d27a7bcf9d4056ffe (patch)
tree8407046800c15838e98642d9514788e227927971 /fs/nfs/pnfs_dev.c
parent7952f4999f338ea23845e3419ad0963db147c910 (diff)
downloadlinux-70bcf9f418ebefe6c862fb1d27a7bcf9d4056ffe.tar.xz
NFSv4.1: Fix a kfree() of uninitialised pointers in decode_cb_sequence_args
commit d8ba1f971497c19cf80da1ea5391a46a5f9fbd41 upstream. 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: 4aece6a19cf7f ("nfs41: cb_sequence xdr implementation") Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nfs/pnfs_dev.c')
0 files changed, 0 insertions, 0 deletions