From patchwork Fri Nov 5 16:31:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ionut Nicu X-Patchwork-Id: 304372 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 oA5GVYYs005511 for ; Fri, 5 Nov 2010 16:31:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753077Ab0KEQbb (ORCPT ); Fri, 5 Nov 2010 12:31:31 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:45057 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753046Ab0KEQbb (ORCPT ); Fri, 5 Nov 2010 12:31:31 -0400 Received: by mail-bw0-f46.google.com with SMTP id 11so2827646bwz.19 for ; Fri, 05 Nov 2010 09:31:30 -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=yhhAOgY3GRHKVAcx8Msr5kOUbPL1Vh23h8sGb7INXCw=; b=k4Mrg4sozGGAEeyXub3SIUTSS3bzs1gtEFyz/wn+2XG+khzxQrENyuefnxrtuf8F0I 9IBHS8VN5qu7r6FJYAcJj94HmiXEGYqZqpR2WBo2D+l35w/Xy38hKPNnSOG5ZKO46EkS uaGTgiL+0mnkIMG1ES5TQyMALoSNMP7Sxq5j8= 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=js8taNMIjPmTMzfks36+H5SA3bXIvHq1SggfLFlfAf7EvYuDMrZFV9tYvTDVq6doN+ ZAlwKgksqHFzJM7BVzD72Jlju+2HVslouCexU9Cg27XJzxK5UYFuZDdbe1jrw7CZT4b/ 2lXYHgKOboo6rh0aL6WTj0XT4FGAl1S/TFxq8= Received: by 10.204.122.11 with SMTP id j11mr2027555bkr.171.1288974690628; Fri, 05 Nov 2010 09:31:30 -0700 (PDT) Received: from localhost.localdomain (196-98-odb-svnet.titannet.ro [77.81.196.98]) by mx.google.com with ESMTPS id p22sm1151957bkp.9.2010.11.05.09.31.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Nov 2010 09:31:29 -0700 (PDT) From: Ionut Nicu To: Greg Kroah-Hartman , Omar Ramirez Luna Cc: Fernando Guzman Lugo , Felipe Contreras , linux-omap , Ionut Nicu Subject: [PATCH v3 1/3] staging: tidspbridge: fix mgr_enum_node_info Date: Fri, 5 Nov 2010 18:31:12 +0200 Message-Id: <1288974674-24330-2-git-send-email-ionut.nicu@mindbit.ro> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1288974674-24330-1-git-send-email-ionut.nicu@mindbit.ro> References: <1288974674-24330-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 16:31:34 +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;