]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc64bb93cc39d28ca4f66337f8ba5dd3bfe9f834b
treec6d8ae33dab0fb622d894a071c669888905121ea
parent4663520f053a9a2494c834f4eab09156d62d1bc9
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