Whamcloud - gitweb
LU-7943 mdd: Move assignment after LASSERT() 76/32376/2
authorArshad Hussain <arshad.super@gmail.com>
Sat, 12 May 2018 08:43:54 +0000 (14:13 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 21 May 2018 16:56:28 +0000 (16:56 +0000)
commita5161cc005aeb383cb326a32976f8d43e7594bb3
tree277cca709f8edf3fff996c1429a9e6f347169321
parent5c8f5e0fed73b03d7171baeabb16ba0c21d51448
LU-7943 mdd: Move assignment after LASSERT()

This patch moves 'sname->ln_namelen' assignment call after LASSERT() call.
This avoids a case when 'sname' parameter is NULL and dereferencing the
NULL pointer would fault before it reaches LASSERT()

Change-Id: I68b07f7ca33fd21ee0599b7bb73d6e41546bd2d8
Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.super@gmail.com>
Reviewed-on: https://review.whamcloud.com/32376
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
lustre/mdd/mdd_dir.c