From patchwork Fri Nov 5 17:01:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ionut Nicu X-Patchwork-Id: 304432 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 oA5H2Jbq009256 for ; Fri, 5 Nov 2010 17:02:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753797Ab0KERCT (ORCPT ); Fri, 5 Nov 2010 13:02:19 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:50546 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862Ab0KERCS (ORCPT ); Fri, 5 Nov 2010 13:02:18 -0400 Received: by yxk8 with SMTP id 8so2321444yxk.19 for ; Fri, 05 Nov 2010 10:02:18 -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=NYApjTs1I0bCi4gSr8cYBWBIAALim/W1F+eB6AWtx3w=; b=YB6eGVheeeG92SSJHs0kxBFJRST9uo+zWuZITv2HPyXD1cW1F33ufMqI9ATbdPfuc6 Kq8NOLuJ0e9jS87K1DHcv7Vjuyz0CmedMR/OtRS14EUFGHQlrdie3ts8OD1bu10alOCC kRcBTElpRHOdvdHa9xP626SjQkFF24icAzaWQ= 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=FVqxV8n5OHTkh5LO8l7GzsLC6Skc8wDG+tdjwwNpCJJkCjhYq/hmqasQO3QwbMhT24 Y5lUjzNyWigDJq+AyS99kGU3q/z6bKGzf3HSE6eJxBEe7a+EO+D7Jj11AGmctrsM/i8N 4e+tMgj452TsIuUVoB0IJFkjTj6HSFeSLbo+k= Received: by 10.204.63.193 with SMTP id c1mr2026758bki.110.1288976537036; Fri, 05 Nov 2010 10:02:17 -0700 (PDT) Received: from localhost.localdomain (196-98-odb-svnet.titannet.ro [77.81.196.98]) by mx.google.com with ESMTPS id g8sm1174621bkg.23.2010.11.05.10.02.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Nov 2010 10:02:16 -0700 (PDT) From: Ionut Nicu To: Greg Kroah-Hartman , Omar Ramirez Luna Cc: Fernando Guzman Lugo , Felipe Contreras , linux-omap Subject: [PATCH v4 1/3] staging: tidspbridge: fix mgr_enum_node_info Date: Fri, 5 Nov 2010 19:01:48 +0200 Message-Id: <1288976510-25470-2-git-send-email-ionut.nicu@mindbit.ro> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1288976510-25470-1-git-send-email-ionut.nicu@mindbit.ro> References: <1288976510-25470-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 17:02:20 +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;