From patchwork Fri Oct 22 13:36:31 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Contreras X-Patchwork-Id: 274191 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 o9MDaZe6002035 for ; Fri, 22 Oct 2010 13:36:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754117Ab0JVNge (ORCPT ); Fri, 22 Oct 2010 09:36:34 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:41147 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751446Ab0JVNgd (ORCPT ); Fri, 22 Oct 2010 09:36:33 -0400 Received: by fxm16 with SMTP id 16so638887fxm.19 for ; Fri, 22 Oct 2010 06:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ConRzbi1SxIvoeSvGx7vA3BvHusGgRquDdAKro+C4RU=; b=IBqTHjVPDZS2GzF78rfwVJ1uriQzNSvAUmEcKsyCGvjfuZZugRnjCEBrPL7LwzHUC8 LIuwCO/sB978PGEWP7ATJH6qOlE7LGJ+J+KNw/gNs4lGFOLTbvffhvEbF2aT384CeXe+ fnPcF+q9TS2DdxOnMVxbY7jaqLKxe28dstLn8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FylWEGjM5rGGp0RwmOqg9ae/+jYn/78wJCbCGmSoCXEEIS8iKzCAEKEgzM2uDGuPse +XXV1PB/E5TbFbkFiSAGLQna4GKjNjVBu8aNfm5pL0o4NhW+fffrVSpYhTK1e/7ddyph dE0fmiSyKEDdNLW+faVIlsstJXYGp+6Ks/PPI= MIME-Version: 1.0 Received: by 10.239.137.140 with SMTP id l12mr747106hbl.195.1287754591817; Fri, 22 Oct 2010 06:36:31 -0700 (PDT) Received: by 10.239.185.14 with HTTP; Fri, 22 Oct 2010 06:36:31 -0700 (PDT) In-Reply-To: <1287752386-5974-1-git-send-email-ionut.nicu@mindbit.ro> References: <1287752386-5974-1-git-send-email-ionut.nicu@mindbit.ro> Date: Fri, 22 Oct 2010 16:36:31 +0300 Message-ID: Subject: Re: [PATCH] staging: tidspbridge: make the MGR_ENUMNODE_INFO ioctl work From: Felipe Contreras To: Ionut Nicu Cc: Greg Kroah-Hartman , Omar Ramirez Luna , Fernando Guzman Lugo , linux-omap , Ionut Nicu 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, 22 Oct 2010 13:36:37 +0000 (UTC) diff --git a/drivers/staging/tidspbridge/rmgr/mgr.c b/drivers/staging/tidspbridge/rmgr/mgr.c index 57a39b9..4ba9517 100644 --- a/drivers/staging/tidspbridge/rmgr/mgr.c +++ b/drivers/staging/tidspbridge/rmgr/mgr.c @@ -148,6 +148,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)) {