Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b39599b7 authored by Suman Anna's avatar Suman Anna Committed by Ohad Ben-Cohen
Browse files

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, 15fc6110 "remoteproc: convert to idr_alloc()".

Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
parent f6161aa1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment