Re: [PATCH] remoteproc: fix the error check for idr_alloc

From: Ohad Ben-Cohen
Date: Sun Mar 17 2013 - 18:36:30 EST

On Thu, Mar 7, 2013 at 1:13 AM, Tejun Heo <tj@xxxxxxxxxx> wrote:
> On Wed, Mar 6, 2013 at 2:56 PM, Suman Anna <s-anna@xxxxxx> 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 <s-anna@xxxxxx>
>> Cc: Tejun Heo <tj@xxxxxxxxxx>
>> Cc: Ohad Ben-Cohen <ohad@xxxxxxxxxx>
> Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks Suman, applied to fixes.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at