From patchwork Fri Nov 5 15:15:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ionut Nicu X-Patchwork-Id: 304262 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA5FG8NA028006 for ; Fri, 5 Nov 2010 15:16:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752708Ab0KEPQH (ORCPT ); Fri, 5 Nov 2010 11:16:07 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:39839 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752656Ab0KEPQG (ORCPT ); Fri, 5 Nov 2010 11:16:06 -0400 Received: by mail-bw0-f46.google.com with SMTP id 11so2759744bwz.19 for ; Fri, 05 Nov 2010 08:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=OsIbrkmlz9HMzH7MMwiyIs55LdX+AontN2Ikmb+1FDE=; b=uwJU+4XEtRbvewS3+LMoRLzZDlFqgKx1x4Hy0elw6xl1PoqJYL9YVCjYBpGRQLanbk zV4d7dQfAwYGmrdHb5LKRXteTlDCocKyN80ZwYC1jhlL3hybbs/U0mE+t6KzDBULB5/q K3OLWtD78ZzqMI/313uELI9XZMLF2RWisR3Cs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=L9ysuYbZM4fL/AgMMQf9kiRFnvOW9PLSQRjrT2h5YEytCuZd3XKxpl7k42nqhCz56a h/4d8pMmbvPuF6ZKAbqyppRH4UYp9e7AStBq1hY4gSzd6xL/K1lNGktGa8zCVNh6A1zn hROTKqffancfh7pmWqHvcDxqE92Ya6JHCqXqQ= Received: by 10.204.122.11 with SMTP id j11mr1953908bkr.171.1288970165377; Fri, 05 Nov 2010 08:16:05 -0700 (PDT) Received: from localhost.localdomain (196-98-odb-svnet.titannet.ro [77.81.196.98]) by mx.google.com with ESMTPS id g8sm1080402bkg.11.2010.11.05.08.16.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Nov 2010 08:16:04 -0700 (PDT) From: Ionut Nicu To: Greg Kroah-Hartman , Omar Ramirez Luna Cc: Fernando Guzman Lugo , Felipe Contreras , linux-omap , Ionut Nicu Subject: [PATCH v2 1/3] staging: tidspbridge: fix mgr_enum_node_info Date: Fri, 5 Nov 2010 17:15:46 +0200 Message-Id: <1288970148-22191-2-git-send-email-ionut.nicu@mindbit.ro> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1288970148-22191-1-git-send-email-ionut.nicu@mindbit.ro> References: <1288970148-22191-1-git-send-email-ionut.nicu@mindbit.ro> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 05 Nov 2010 15:16:09 +0000 (UTC) diff --git a/drivers/staging/tidspbridge/rmgr/mgr.c b/drivers/staging/tidspbridge/rmgr/mgr.c index 0ea89a1..2eab6a5 100644 --- a/drivers/staging/tidspbridge/rmgr/mgr.c +++ b/drivers/staging/tidspbridge/rmgr/mgr.c @@ -169,6 +169,11 @@ int mgr_enum_node_info(u32 node_id, struct dsp_ndbprops *pndb_props, } } + + /* the last status is not 0, but neither an error */ + if (status > 0) + status = 0; + if (!status) { if (node_id > (node_index - 1)) { status = -EINVAL;