summaryrefslogtreecommitdiffstats
path: root/drivers/base/init.c
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2013-03-06 23:56:48 +0100
committerOhad Ben-Cohen <ohad@wizery.com>2013-04-05 07:47:38 +0200
commitb39599b7cb8f295205b04827ff82e3afec687cde (patch)
tree39d30976e21dabd233fdb4971a2aae65ba3c6663 /drivers/base/init.c
parentLinux 3.9-rc2 (diff)
downloadlinux-b39599b7cb8f295205b04827ff82e3afec687cde.tar.xz
linux-b39599b7cb8f295205b04827ff82e3afec687cde.zip
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>
Diffstat (limited to 'drivers/base/init.c')
0 files changed, 0 insertions, 0 deletions