From: John L. Hammond Date: Sat, 1 Mar 2014 02:16:36 +0000 (-0500) Subject: lustre/mdc: fix bad ERR_PTR usage in mdc_locks.c X-Git-Tag: v3.15-rc1~139^2~765 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=add882a8b59fe25ed35c64861908dadf739bc619;p=pandora-kernel.git lustre/mdc: fix bad ERR_PTR usage in mdc_locks.c In mdc_intent_open_pack() return an ERR_PTR() rather than NULL when ldlm_prep_enqueue_req() fails. In mdc_intent_getattr_async() check the return value of mdc_intent_getattr_pack() using IS_ERR(). Clean up the includes in mdc_locks.c. Signed-off-by: John L. Hammond Reviewed-on: http://review.whamcloud.com/7886 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4078 Reviewed-by: Andreas Dilger Reviewed-by: Nathaniel Clark Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed