From: Suman Anna Date: Wed, 6 Mar 2013 22:56:48 +0000 (-0600) Subject: remoteproc: fix the error check for idr_alloc X-Git-Tag: v3.9-rc7~38^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b39599b7cb8f295205b04827ff82e3afec687cde;p=pandora-kernel.git 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 Acked-by: Tejun Heo Signed-off-by: Ohad Ben-Cohen --- Reading git-diff-tree failed