From: Trond Myklebust Date: Wed, 11 Feb 2015 22:27:55 +0000 (-0500) Subject: NFSv4.1: Fix a kfree() of uninitialised pointers in decode_cb_sequence_args X-Git-Tag: fixes-v4.0-rc1~25^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8ba1f971497c19cf80da1ea5391a46a5f9fbd41;p=pandora-kernel.git NFSv4.1: Fix a kfree() of uninitialised pointers in decode_cb_sequence_args 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 Fixes: 4aece6a19cf7f ("nfs41: cb_sequence xdr implementation") Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed