WSL2-Linux-Kernel/drivers/staging/tidspbridge
Tejun Heo 8e467e855c tidspbridge: convert to idr_alloc()
idr_get_new*() and friends are about to be deprecated.  Convert to the
new idr_alloc() interface.

There are some peculiarities and possible bugs in the converted
functions.  This patch preserves those.

* drv_insert_node_res_element() returns -ENOMEM on alloc failure,
  -EFAULT if id space is exhausted.  -EFAULT is at best misleading.

* drv_proc_insert_strm_res_element() is even weirder.  It returns
  -EFAULT if kzalloc() fails, -ENOMEM if idr preloading fails and
  -EPERM if id space is exhausted.  What's going on here?

* drv_proc_insert_strm_res_element() doesn't free *pstrm_res after
  failure.

Only compile tested.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Cc: Rene Sapiens <rene.sapiens@ti.com>
Cc: Armando Uribe <x0095078@ti.com>
Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-03-13 15:21:47 -07:00
..
Documentation staging: tidspbridge: Fix typos. 2012-08-13 19:06:59 -07:00
core staging: tidspbridge: remove redundant NULL check before delete_msg_mgr(). 2013-02-13 08:46:48 -08:00
dynload staging: tidspbridge: dynload: reloc.c: checkpatch.pl cleanup 2012-11-13 13:10:39 -08:00
gen staging: tidspbridge: eliminate uuid_uuid_to_string 2012-08-13 19:06:59 -07:00
hw staging: tidspbridge: delete unused mmu functions 2012-10-24 16:31:32 -07:00
include/dspbridge staging: tidspbridge: remove unused code to handle iva_img 2013-01-17 16:47:13 -08:00
pmgr staging: Remove unnecessary OOM messages 2013-02-11 10:10:33 -08:00
rmgr tidspbridge: convert to idr_alloc() 2013-03-13 15:21:47 -07:00
Kconfig ARM: OMAP2+: Disable code that currently does not work with multiplaform 2013-01-11 11:24:20 -08:00
Makefile staging: tidspbridge: Rename module from bridgedriver to tidspbridge 2012-02-09 09:37:11 -08:00
TODO staging: tidspbridge: remove custom linked list 2011-02-04 20:11:41 -06:00