OSDN Git Service

staging: lustre/ptlrpc: small leak on allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Nov 2016 11:12:04 +0000 (14:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 20:44:01 +0000 (21:44 +0100)
commit7966f2d22e2a9bb00b8b216275283d017e092fa2
treec6d8ae33dab0fb622d894a071c669888905121ea
parent2d2139c5c746ec61024fdfa9c36e4e034bb18e59
staging: lustre/ptlrpc: small leak on allocation failure

We should free "desc" before returning NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/client.c