projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce0c8e0
)
md: alloc_disk_sb(): Return proper error value.
author
Andre Noll
<maan@systemlinux.org>
Fri, 11 Jul 2008 12:02:20 +0000
(22:02 +1000)
committer
Neil Brown
<neilb@suse.de>
Fri, 11 Jul 2008 12:02:20 +0000
(22:02 +1000)
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
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index
20e03db
..
9756ea0
100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-372,7
+372,7
@@
static int alloc_disk_sb(mdk_rdev_t * rdev)
rdev->sb_page = alloc_page(GFP_KERNEL);
if (!rdev->sb_page) {
printk(KERN_ALERT "md: out of memory.\n");
- return -E
INVAL
;
+ return -E
NOMEM
;
}
return 0;