Whamcloud - gitweb
LU-7947 obdclass: Move assignment below LASSERT() 61/24561/5
authorArshad Hussain <arshad.hussain@seagate.com>
Tue, 27 Dec 2016 16:45:39 +0000 (22:15 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 15 Mar 2018 13:54:43 +0000 (13:54 +0000)
commitbed1cbb3db18e01b933f1a799b4f4fd4ff707cfa
treea137a0cbb0ee72d9037c232a967da9cce4b734b5
parent829731a6e971f4ca12c23e8fcd08fb4516b839dd
LU-7947 obdclass: Move assignment below LASSERT()

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

Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.hussain@seagate.com>
Change-Id: Ie9bcd172a264e104dca300a8bac04d2bd132efb0
Reviewed-on: https://review.whamcloud.com/24561
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/llog.c