SUNRPC: Fix a potential memory leak in auth_gss
commitea374cba047ddb056ca4b4f8813282ad7642201e
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 19 Mar 2010 19:36:22 +0000 (19 15:36 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:58:41 +0000 (1 15:58 -0700)
treeeda9ec56c42447a6fde36441085b3225a7af4da0
parent632682a2eccc96b1b5238e274dde6b18a5b670f1
SUNRPC: Fix a potential memory leak in auth_gss

commit cdead7cf12896c0e50a8be2e52de52c364603095 upstream.

The function alloc_enc_pages() currently fails to release the pointer
rqstp->rq_enc_pages in the error path.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/auth_gss/auth_gss.c