Home
last modified time | relevance | path

Searched hist:b39599b7cb8f295205b04827ff82e3afec687cde (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/remoteproc/
H A Dremoteproc_core.cdiff b39599b7cb8f295205b04827ff82e3afec687cde Wed Mar 06 16:56:48 CST 2013 Suman Anna <s-anna@ti.com> remoteproc: fix the error check for idr_alloc

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>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>