staging/lustre/llog: fix return value of llog_alloc_handle
authorLi Xi <pkuelelixi@gmail.com>
Thu, 14 Nov 2013 16:13:17 +0000 (00:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Nov 2013 04:23:04 +0000 (13:23 +0900)
commit2a0f0eacd7d75e8fa79d642aa85bcf7c681187a7
tree65f0f92b6352439bd1785bfd9d082345b67dc70d
parentc7c99012dd68feaebd7f6e0df9251bb62e184e9a
staging/lustre/llog: fix return value of llog_alloc_handle

llog_open() calls llog_alloc_handle() taking NULL as the error return
value. But llog_alloc_handle() returns ERR_PTR(-ENOMEM) instead when
error.

Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3470
Lustre-change: http://review.whamcloud.com/6644
Signed-off-by: Li Xi <pkuelelixi@gmail.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/llog.c