staging: lustre: uapi: check if argument for lustre_cfg_buf() is NULL
commitef27faebbad8d936bd2672ed94c4b925b5c92609
authorJames Simmons <jsimmons@infradead.org>
Sun, 20 Aug 2017 02:26:22 +0000 (19 22:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2017 01:36:49 +0000 (22 18:36 -0700)
treee2724814d74e0a556d8f25fd2c8bfeaefc1b7bcf
parent63d384bfa650f066f44c35b92173d54545dbaf25
staging: lustre: uapi: check if argument for lustre_cfg_buf() is NULL

Check if lcfg passed in is NULL and if it is just return NULL.

Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Reviewed-on: https://review.whamcloud.com/22138
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/uapi/linux/lustre/lustre_cfg.h