summaryrefslogtreecommitdiffstats
path: root/REPORTING-BUGS
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2014-06-06 14:37:13 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 16:08:12 -0700
commitb93804b2fcdb35cc45f95ad77cbe23cc620f6593 (patch)
treebd4b620b05e1f2ee7990f7080cc2a8b246f33c23 /REPORTING-BUGS
parentaef0f62e87122c0fb90d5da660fd131acd0a9d67 (diff)
downloadlinux-b93804b2fcdb35cc45f95ad77cbe23cc620f6593.tar.gz
linux-b93804b2fcdb35cc45f95ad77cbe23cc620f6593.tar.bz2
linux-b93804b2fcdb35cc45f95ad77cbe23cc620f6593.zip
idr: fix idr_replace()'s returned error code
When the smaller id is not found, idr_replace() returns -ENOENT. But when the id is bigger enough, idr_replace() returns -EINVAL, actually there is no difference between these two kinds of ids. These are all unallocated id, the return values of the idr_replace() for these ids should be the same: -ENOENT. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions