Re: [PATCH 3/8] idr: fix NULL pointer dereference when ida_remove(unallocated_id)

2014-04-18 Thread Tejun Heo
On Fri, Apr 18, 2014 at 08:49:50PM +0800, Lai Jiangshan wrote: > If the ida has at least one existed_id, and when an special unallocated_id existing id or allocated id when an unallocated id which

[PATCH 3/8] idr: fix NULL pointer dereference when ida_remove(unallocated_id)

2014-04-18 Thread Lai Jiangshan
If the ida has at least one existed_id, and when an special unallocated_id is passed to the ida_remove(), the system will crash because it hits NULL pointer dereference. This special unallocated_id is that it shares the same lowest idr layer with an exsited_id, but the idr slot is different(if

[PATCH 3/8] idr: fix NULL pointer dereference when ida_remove(unallocated_id)

2014-04-18 Thread Lai Jiangshan
If the ida has at least one existed_id, and when an special unallocated_id is passed to the ida_remove(), the system will crash because it hits NULL pointer dereference. This special unallocated_id is that it shares the same lowest idr layer with an exsited_id, but the idr slot is different(if

Re: [PATCH 3/8] idr: fix NULL pointer dereference when ida_remove(unallocated_id)

2014-04-18 Thread Tejun Heo
On Fri, Apr 18, 2014 at 08:49:50PM +0800, Lai Jiangshan wrote: If the ida has at least one existed_id, and when an special unallocated_id existing id or allocated id when an unallocated id which