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

2013-03-17 Thread Ohad Ben-Cohen
On Thu, Mar 7, 2013 at 1:13 AM, Tejun Heo wrote: > 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,

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

2013-03-06 Thread Tejun Heo
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()". > > Signe

[PATCH] remoteproc: fix the error check for idr_alloc

2013-03-06 Thread Suman Anna
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 ---