Whamcloud - gitweb
LU-11385 odbclass: Handle gracefully if nsproxy is NULL 14/37314/2
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 19 Nov 2019 22:18:17 +0000 (14:18 -0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 27 Jan 2020 23:12:51 +0000 (23:12 +0000)
commit1e519c24829aa5173ea848cd58ef5a65d0fe9739
tree0f31e187a140663ac05ac3556e54b51a3a67e0fc
parentdfef55a09647e60b967c670cfd9dd60667e72e17
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.

Lustre-change: https://review.whamcloud.com/36802
Lustre-commit: 15278c6d32a5a9a7a2b8ac9e08c8702383e0c2ff

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