staging: lustre: ldlm: free resource when ldlm_lock_create() fails.
authorNeilBrown <neilb@suse.com>
Thu, 29 Mar 2018 04:26:48 +0000 (15:26 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:46:39 +0000 (14:46 +0200)
commitd8caf662b4aeeb2ac83ac0b22e40db88e9360c77
tree6fc9df70e1e3cb3a138fe5fc301750e6437bd600
parentaa4cc28e4df70ffc2c30ae5c5b8fe7ae5f8c1127
staging: lustre: ldlm: free resource when ldlm_lock_create() fails.

ldlm_lock_create() gets a resource, but don't put it on
all failure paths. It should.

Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_lock.c