X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmd%2Ffaulty.c;h=f26c1f9a475b8d9cbad5f885016e50723b580cd5;hb=30aafdba6f78619274a977d67283a681bedbcbbd;hp=268547dbfbd30ce2942b3b5d92c9bbfab793d4b7;hpb=76c3bb15d6786a0b8da0ad0090e0c9c3672fc08b;p=linux-2.6-omap-h63xx.git diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c index 268547dbfbd..f26c1f9a475 100644 --- a/drivers/md/faulty.c +++ b/drivers/md/faulty.c @@ -287,6 +287,8 @@ static int run(mddev_t *mddev) int i; conf_t *conf = kmalloc(sizeof(*conf), GFP_KERNEL); + if (!conf) + return -ENOMEM; for (i=0; icounters[i], 0);