hfsplus: incorrect return value
authorChengyu Song <csong84@gatech.edu>
Thu, 16 Apr 2015 19:47:12 +0000 (12:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:05 +0000 (09:04 -0400)
commit27a4e3884e9c6497f96cc28256c3cdaa93d4cf97
tree6096bb5600b235e6218322deed359839919de4c0
parent7ce844a20eb58c9823205e091b815163464e9d19
hfsplus: incorrect return value

In case of memory allocation error, the return should be -ENOMEM, instead
of -ENOSPC.

Signed-off-by: Chengyu Song <csong84@gatech.edu>
Reviewed-by: Sergei Antonov <saproj@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hfsplus/dir.c