]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: fix the error check for idr_alloc
authorSuman Anna <s-anna@ti.com>
Wed, 6 Mar 2013 22:56:48 +0000 (16:56 -0600)
committerOhad Ben-Cohen <ohad@wizery.com>
Fri, 5 Apr 2013 05:47:38 +0000 (08:47 +0300)
commit32cc0419879b801a915baedd66d32446c43b024c
tree39d30976e21dabd233fdb4971a2aae65ba3c6663
parent1d627f8ebb8f17386e39f8027c369ddadbf55bc3
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, c753246 "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>
drivers/remoteproc/remoteproc_core.c