From: Yuanhan Liu Date: Tue, 22 May 2012 03:55:32 +0000 (+1000) Subject: md: check the return of mddev_find() X-Git-Tag: v3.5-rc1~110^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c098220e2320c1f0c9339d0ff05c5e04672133a;p=pandora-kernel.git md: check the return of mddev_find() Check the return of mddev_find(), since it may fail due to out of memeory or out of usable minor number. The reason I chose -ENODEV instead of -ENOMEM or something else is md_alloc() function chose that ;) Signed-off-by: Yuanhan Liu Signed-off-by: NeilBrown --- Reading git-diff-tree failed