|
@@ -287,6 +287,8 @@ static int run(mddev_t *mddev)
|
|
|
int i;
|
|
int i;
|
|
|
|
|
|
|
|
conf_t *conf = kmalloc(sizeof(*conf), GFP_KERNEL);
|
|
conf_t *conf = kmalloc(sizeof(*conf), GFP_KERNEL);
|
|
|
|
|
+ if (!conf)
|
|
|
|
|
+ return -ENOMEM;
|
|
|
|
|
|
|
|
for (i=0; i<Modes; i++) {
|
|
for (i=0; i<Modes; i++) {
|
|
|
atomic_set(&conf->counters[i], 0);
|
|
atomic_set(&conf->counters[i], 0);
|