SUNRPC: Fix a potential memory leak in auth_gss
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 19 Mar 2010 19:36:22 +0000 (15:36 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 21 Mar 2010 16:22:49 +0000 (12:22 -0400)
commitcdead7cf12896c0e50a8be2e52de52c364603095
tree0702010a10dadca0a597ab071f3678d5c843047b
parentd812e575822a2b7ab1a7cadae2571505ec6ec2bd
SUNRPC: Fix a potential memory leak in auth_gss

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>
Cc: stable@kernel.org
net/sunrpc/auth_gss/auth_gss.c