Whamcloud - gitweb
LU-11385 odbclass: Handle gracefully if nsproxy is NULL 02/36802/5
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 19 Nov 2019 22:18:17 +0000 (14:18 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Jan 2020 05:31:27 +0000 (05:31 +0000)
commit15278c6d32a5a9a7a2b8ac9e08c8702383e0c2ff
treec7413e063ae539624235454480732dd9e40182f9
parent77e165662c054c9fbfcebe529b7d2a676a1587f3
LU-11385 odbclass: Handle gracefully if nsproxy is NULL

Gracefully handle the case if current->nsproxy is NULL:
check for the condition and return an error, avoiding attempts
to dereference the pointer.

Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: Ia102d2bacdb0e54b0339985396447e6d25465c56
Reviewed-on: https://review.whamcloud.com/36802
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_compat.h
lustre/obdclass/genops.c
lustre/obdclass/llog.c