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

From: Tejun Heo
Date: Wed Mar 06 2013 - 18:13:22 EST


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>

Sorry about that.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/