Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757062Ab3CFXNT (ORCPT ); Wed, 6 Mar 2013 18:13:19 -0500 Received: from mail-ie0-f173.google.com ([209.85.223.173]:39253 "EHLO mail-ie0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754116Ab3CFXNS (ORCPT ); Wed, 6 Mar 2013 18:13:18 -0500 MIME-Version: 1.0 In-Reply-To: <1362610608-64885-1-git-send-email-s-anna@ti.com> References: <1362610608-64885-1-git-send-email-s-anna@ti.com> Date: Wed, 6 Mar 2013 15:13:17 -0800 X-Google-Sender-Auth: j47OzEchLpKeRJf9uNXD93sMNOU Message-ID: Subject: Re: [PATCH] remoteproc: fix the error check for idr_alloc From: Tejun Heo To: Suman Anna Cc: linux-kernel@vger.kernel.org, Ohad Ben-Cohen Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 734 Lines: 21 On Wed, Mar 6, 2013 at 2:56 PM, Suman Anna wrote: > The new idr_alloc interface returns the allocated id back > on success, so fix the error path to check for negative > values. This was missed out in the newer idr interface > adoption patch, 15fc611 "remoteproc: convert to idr_alloc()". > > Signed-off-by: Suman Anna > Cc: Tejun Heo > Cc: Ohad Ben-Cohen Acked-by: Tejun Heo Sorry about that. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/