From patchwork Wed Jul 20 08:08:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuanhan Liu X-Patchwork-Id: 990432 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6K885Hl004274 for ; Wed, 20 Jul 2011 08:08:26 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EECD59F059 for ; Wed, 20 Jul 2011 01:08:04 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org 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) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 20 Jul 2011 01:07:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,233,1309762800"; d="scan'208";a="30110857" Received: from yliu-gfx.sh.intel.com ([10.239.36.56]) by fmsmga002.fm.intel.com with ESMTP; 20 Jul 2011 01:07:46 -0700 From: Yuanhan Liu To: intel-gfx@lists.freedesktop.org Date: Wed, 20 Jul 2011 16:08:51 +0800 Message-Id: <1311149331-6812-1-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.7.4.4 Subject: [Intel-gfx] [PATCH] intel: fix the wrong method check for bo_get_subdata X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 20 Jul 2011 08:17:51 +0000 (UTC) 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)