thp: handle errors in hugepage_init() properly
authorKirill A. Shutemov <[email protected]>
Wed, 15 Apr 2015 23:14:20 +0000 (16:14 -0700)
committerLinus Torvalds <[email protected]>
Wed, 15 Apr 2015 23:35:18 +0000 (16:35 -0700)
commit65ebb64f4d2ce8eba4d0ec82d6cf65022e70e4a1
tree52086d74382f1645a649794585c8f3f2581c6313
parentbdfedb76f4f5aa5e37380e3b71adee4a39f30fc6
thp: handle errors in hugepage_init() properly

We miss error-handling in few cases hugepage_init(). Let's fix that.

Signed-off-by: Kirill A. Shutemov <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/huge_memory.c