From: Yuanhan Liu Subject: [PATCH] intel: fix the wrong method check for bo_get_subdata Date: Wed, 20 Jul 2011 16:08:51 +0800 Message-ID: <1311149331-6812-1-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 77D009EF18 for ; Wed, 20 Jul 2011 01:07:47 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org It's going to call bo_get_subdata method, but not bo_subdata Signed-off-by: Yuanhan Liu --- intel/intel_bufmgr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/intel/intel_bufmgr.c b/intel/intel_bufmgr.c index ab57427..905556f 100644 --- a/intel/intel_bufmgr.c +++ b/intel/intel_bufmgr.c @@ -104,7 +104,7 @@ drm_intel_bo_get_subdata(drm_intel_bo *bo, unsigned long offset, unsigned long size, void *data) { int ret; - if (bo->bufmgr->bo_subdata) + if (bo->bufmgr->bo_get_subdata) return bo->bufmgr->bo_get_subdata(bo, offset, size, data); if (size == 0 || data == NULL) -- 1.7.3.1