Whamcloud - gitweb
LU-5320: fixes for errors found by coccinelle 47/11047/3
authorFrank Zago <fzago@cray.com>
Thu, 10 Jul 2014 15:31:22 +0000 (10:31 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 11 Jul 2014 02:58:31 +0000 (02:58 +0000)
commit206d525e6bfd7388dc07c636ad378d1f5c327cd5
tree124437b3c6edc2b3b1c3d90679b137abe3196df3
parent13352ee70c2f1b3c382fa1bae1885967fb2cf69b
LU-5320: fixes for errors found by coccinelle

This patch fixes 3 errors found by coccinelle (a static analyser):

lustre/ptlrpc/nrs_tbf.c:312:2-8: preceding lock on line 307
lustre/fid/fid_handler.c:73:43-51: ERROR: cli is NULL but dereferenced.
lustre/lfsck/lfsck_lib.c:1564:1-10: second lock on line 1571

Signed-off-by: Frank Zago <fzago@cray.com>
Change-Id: Ic00a5c1dd331df879d6a10f11a07ef14f2beefd8
Reviewed-on: http://review.whamcloud.com/11047
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/fid/fid_handler.c
lustre/lfsck/lfsck_lib.c
lustre/ptlrpc/nrs_tbf.c