From add882a8b59fe25ed35c64861908dadf739bc619 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Fri, 28 Feb 2014 21:16:36 -0500 Subject: [PATCH] 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-format-patch failed