OSDN Git Service

staging/lustre/llite: protect from accessing NULL lli_clob
authorBobi Jam <bobijam.xu@intel.com>
Thu, 3 Nov 2016 01:25:00 +0000 (21:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 10:36:46 +0000 (11:36 +0100)
commit028f78a9b83534f18ee7383cfad0052aa0de47a1
tree7d6fbe292e859c9c3a7c49313ea1c166bec4cd58
parenta08a07c39dd265344f3605961220ca4fc9baed7f
staging/lustre/llite: protect from accessing NULL lli_clob

Need to check file's lli_clob object before calling
lov_read_and_clear_async_rc().

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/23031
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8682
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c