Whamcloud - gitweb
LU-2059 mgs: fix a bug in mgs_llog_open 28/12428/2
authorMikhail Pershin <mike.pershin@intel.com>
Sat, 25 Oct 2014 05:23:41 +0000 (22:23 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 6 Nov 2014 18:37:51 +0000 (18:37 +0000)
commitd96a2848d75c9b11943717393262c2e5b96976de
treebc15ea8e9a5e8a52d0d10442f5264696db1aa8be
parentb55669bb896b40067bf529c35531d15a029de002
LU-2059 mgs: fix a bug in mgs_llog_open

- don't calculate len for NULL ptr
- check the logname is PARAMS_FILENAME inside 'if (ptr == NULL ...)
clause so all cases with NULL ptr will end there.

This patch is back-ported from the following one:
Lustre-commit: 8c21986e79f50131b0f381e5fe0311294328d660
Lustre-change: http://review.whamcloud.com/10589

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: Ic69866e91acad7920085848faf12c69bf3d17f12
Reviewed-on: http://review.whamcloud.com/12428
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Hongchao Zhang <hongchao.zhang@intel.com>
lustre/mgs/mgs_handler.c