diff mbox

intel: fix the wrong method check for bo_get_subdata

Message ID 1311149331-6812-1-git-send-email-yuanhan.liu@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yuanhan Liu July 20, 2011, 8:08 a.m. UTC
It's going to call bo_get_subdata method, but not bo_subdata

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
---
 intel/intel_bufmgr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Eric Anholt July 20, 2011, 5:47 p.m. UTC | #1
On Wed, 20 Jul 2011 16:08:51 +0800, Yuanhan Liu <yuanhan.liu@linux.intel.com> wrote:
> It's going to call bo_get_subdata method, but not bo_subdata
> 
> Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>

Applied.  Thanks!
diff mbox

Patch

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)