md: alloc_disk_sb(): Return proper error value.
authorAndre Noll <maan@systemlinux.org>
Fri, 11 Jul 2008 12:02:20 +0000 (22:02 +1000)
committerNeil Brown <neilb@suse.de>
Fri, 11 Jul 2008 12:02:20 +0000 (22:02 +1000)
commitebc243372842a81dddbe00bd047a25b8ee7d8b87
tree8c362c91d8628b1362b7abb8abcd0a1e7ca7803c
parentce0c8e05f8ef93d991d665aade8c4bf35806ea1a
md: alloc_disk_sb(): Return proper error value.

If alloc_page() fails, ENOMEM is a more suitable error value
than EINVAL.

Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: Neil Brown <neilb@suse.de>
drivers/md/md.c