mm: propagate error from stack expansion even for guard page
[pandora-kernel.git] / include / linux / mm.h
index 7f40120..5a9c599 100644 (file)
@@ -1470,7 +1470,7 @@ extern int expand_downwards(struct vm_area_struct *vma,
 #if VM_GROWSUP
 extern int expand_upwards(struct vm_area_struct *vma, unsigned long address);
 #else
-  #define expand_upwards(vma, address) do { } while (0)
+  #define expand_upwards(vma, address) (0)
 #endif
 
 /* Look up the first VMA which satisfies  addr < vm_end,  NULL if none. */