Whamcloud - gitweb
LU-5398 ldlm: handle NULL lock in ldlm_handle_enqueue0() 97/11197/3
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 23 Jul 2014 20:08:48 +0000 (15:08 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 4 Aug 2014 14:50:44 +0000 (14:50 +0000)
commitd14c3dfec382446a2f5e4e91c56d162e56563d0f
tree010aa23687579c56733e04f7dfcf650f2f14211e
parent98a4b7903611fd88de9e0452118488997065081b
LU-5398 ldlm: handle NULL lock in ldlm_handle_enqueue0()

In ldlm_handle_enqueue0() if ldlm_lock_create() fails then set lock to
NULL before jumping to the exit code. In the exit code test lock for
NULL rather than using IS_ERR().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I5e2680988bd5356f2a84bd5eb9e2d40138d6d250
Reviewed-on: http://review.whamcloud.com/11197
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ldlm/ldlm_lockd.c