diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/faulty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c index 268547dbfbd3..f26c1f9a475b 100644 --- a/drivers/md/faulty.c +++ b/drivers/md/faulty.c | |||
@@ -287,6 +287,8 @@ static int run(mddev_t *mddev) | |||
287 | int i; | 287 | int i; |
288 | 288 | ||
289 | conf_t *conf = kmalloc(sizeof(*conf), GFP_KERNEL); | 289 | conf_t *conf = kmalloc(sizeof(*conf), GFP_KERNEL); |
290 | if (!conf) | ||
291 | return -ENOMEM; | ||
290 | 292 | ||
291 | for (i=0; i<Modes; i++) { | 293 | for (i=0; i<Modes; i++) { |
292 | atomic_set(&conf->counters[i], 0); | 294 | atomic_set(&conf->counters[i], 0); |