Whamcloud - gitweb
LU-7952 osp: Move strlen() call below LASSERT() 19/20919/5
authorArshad Hussain <arshad.hussain@seagate.com>
Tue, 21 Jun 2016 03:21:29 +0000 (08:51 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 23 Dec 2016 05:05:04 +0000 (05:05 +0000)
commit6719f3102abd39fd1af7d2ba34cb39a7ebb37339
tree0845b4db062117f31f1f83049e70cfedff7cc8fd
parent9811edb26d3bff66c61acc39a72554461445298f
LU-7952 osp: Move strlen() call below LASSERT()

This patch moves the strlen() call below LASSERT(). This
avoids a case when parameter to strlen() is NULL and
dereferencing the NULL pointer would cause fault before
it reaches LASSERT().

Signed-off-by: Arshad Hussain <arshad.hussain@seagate.com>
Change-Id: Ie7a683751cf44d7dfad6de1a9024c5fb7a35c35d
Reviewed-on: https://review.whamcloud.com/20919
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
lustre/osp/osp_object.c