lkml.org 
[lkml]   [2013]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] remoteproc: fix the error check for idr_alloc
On Thu, Mar 7, 2013 at 1:13 AM, Tejun Heo <tj@kernel.org> wrote:
> On Wed, Mar 6, 2013 at 2:56 PM, Suman Anna <s-anna@ti.com> 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@ti.com>
>> Cc: Tejun Heo <tj@kernel.org>
>> Cc: Ohad Ben-Cohen <ohad@wizery.com>
>
> Acked-by: Tejun Heo <tj@kernel.org>

Thanks Suman, applied to fixes.


\
 
 \ /
  Last update: 2013-03-17 23:41    [W:0.046 / U:1.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site