Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1BAAAE00510; Sat, 28 Jun 2014 10:02:11 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.192.171 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A4C1AE003D6 for ; Sat, 28 Jun 2014 10:02:09 -0700 (PDT) Received: by mail-pd0-f171.google.com with SMTP id fp1so5948523pdb.16 for ; Sat, 28 Jun 2014 10:02:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=poZKP2UwnKKzv7/u12eFzNacTc/F2eg3OROQLSclYeE=; b=OIR5ayRPm9zkg8/NpFIoCo5th/RUy1p2Pvr6GKBe88o7wKhWW6TsoS65H67o6EAkq+ 43siuKTSyyMWt/I+dPYyQwlaoIWamVyMGuiU8sb4A2jpac9p51kBexI48z2eKCyU90ta hdk7V8POPEOwcZMVK8ho7P9JVmngmVweKJ5C8YhaVVk0s+jRElKLBmeF3Q765t/Oeudv JgpTeaetT6lcSK3dIgBdef31zYaoqYf4peqK6LlJE1E71gFwso4FUfdvW6CBU7et9fu/ IIR0BVr2csLMFzKMoAVRx+2A8xazD1cqZRkgD+jtn1yl+NWOZV38iO67uPgHL1172l4w Okug== X-Gm-Message-State: ALoCoQkRQtc3I1QLtO3exWLX+T2EzKr2RhgZKy7KC6fSkqNdZaOpxZv+wm0F6uHQ9vLSzZSG+MaO X-Received: by 10.68.130.38 with SMTP id ob6mr38834534pbb.141.1403974928650; Sat, 28 Jun 2014 10:02:08 -0700 (PDT) Received: from localhost.localdomain (ip98-165-103-37.ph.ph.cox.net. [98.165.103.37]) by mx.google.com with ESMTPSA id qv9sm20051814pbc.71.2014.06.28.10.02.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Jun 2014 10:02:07 -0700 (PDT) From: Eric Nelson To: meta-freescale@yoctoproject.org Date: Sat, 28 Jun 2014 10:02:00 -0700 Message-Id: <1403974920-28364-1-git-send-email-eric.nelson@boundarydevices.com> X-Mailer: git-send-email 1.9.1 Cc: laci@boundarydevices.com, otavio@ossystems.com.br Subject: [meta-fsl-arm][PATCH] libfslvpuwrap_1.0.46: fix IOGetVirtMem calls X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jun 2014 17:02:11 -0000 Signed-off-by: Eric Nelson --- ...-fix-tests-of-return-value-from-IOGetVirt.patch | 39 ++++++++++++++++++++++ .../libfslvpuwrap/libfslvpuwrap_1.0.46.bb | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch diff --git a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch new file mode 100644 index 0000000..e12db3f --- /dev/null +++ b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap/0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch @@ -0,0 +1,39 @@ +From 08270a6fefaefee69f2d3d324be06d631a911c80 Mon Sep 17 00:00:00 2001 +From: Eric Nelson +Date: Sat, 28 Jun 2014 09:45:09 -0700 +Subject: [PATCH] vpu_wrapper: fix tests of return value from IOGetVirtMem + +IOGetVirtMem() returns a pointer or specifically -1 (MAP_FAILED) +in the case of failure. + +Signed-off-by: Laci Tele +Signed-off-by: Eric Nelson +--- + vpu_wrapper.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/vpu_wrapper.c b/vpu_wrapper.c +index 9249174..148c5df 100755 +--- a/vpu_wrapper.c ++++ b/vpu_wrapper.c +@@ -6653,7 +6653,7 @@ VpuDecRetCode VPU_DecGetMem(VpuMemDesc* pInOutMem) + return VPU_DEC_RET_FAILURE; + } + ret=IOGetVirtMem(&buff); +- if(ret==0) //if(ret!=RETCODE_SUCCESS) ++ if(ret == -1) //if(ret==MAP_FAILED) + { + VPU_ERROR("%s: get virtual memory failure: size=%d, ret=%d \r\n",__FUNCTION__,buff.size,ret); + return VPU_DEC_RET_FAILURE; +@@ -8277,7 +8277,7 @@ VpuEncRetCode VPU_EncGetMem(VpuMemDesc* pInOutMem) + return VPU_ENC_RET_FAILURE; + } + ret=IOGetVirtMem(&buff); +- if(ret==0) //if(ret!=RETCODE_SUCCESS) ++ if(ret == -1) //if(ret==MAP_FAILED) + { + VPU_ENC_ERROR("%s: get virtual memory failure: size=%d, ret=%d \r\n",__FUNCTION__,buff.size,(UINT32)ret); + return VPU_ENC_RET_FAILURE; +-- +1.9.1 + diff --git a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb index e4970e2..8cc1523 100644 --- a/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb +++ b/recipes-multimedia/libfslvpuwrap/libfslvpuwrap_1.0.46.bb @@ -10,6 +10,8 @@ SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" SRC_URI[md5sum] = "1f50110cb6de8ebf767fb9c5f8baf20d" SRC_URI[sha256sum] = "7fc1258de338339d19a1a35167393fdc4d773682dfd9b951b197403a075f85fd" +SRC_URI_append = " file://0001-vpu_wrapper-fix-tests-of-return-value-from-IOGetVirt.patch" + inherit fsl-eula-unpack autotools pkgconfig do_install_append() { -- 1.9.1