]> git.baikalelectronics.ru Git - kernel.git/commit
md: fix some issues with alloc_disk_sb()
authorNeilBrown <neilb@suse.com>
Wed, 2 Nov 2016 03:16:49 +0000 (14:16 +1100)
committerShaohua Li <shli@fb.com>
Mon, 7 Nov 2016 23:08:21 +0000 (15:08 -0800)
commitf6ab1a33b809d392d19b4372f8521a39e778c03a
tree4c304ea8bfbea2907b8d135c7e5f7b846a0e3d75
parent96f68338c2e5357f38e0d3138d7b9859ed8c53c0
md: fix some issues with alloc_disk_sb()

1/ don't print a warning if allocation fails.
 page_alloc() does that already.
2/ always check return status for error.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c