diff options
Diffstat (limited to 'drivers/md/faulty.c')
| -rw-r--r-- | drivers/md/faulty.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c index 6e83b38d931d..87d88dbb667f 100644 --- a/drivers/md/faulty.c +++ b/drivers/md/faulty.c | |||
| @@ -299,8 +299,12 @@ static int run(mddev_t *mddev) | |||
| 299 | { | 299 | { |
| 300 | mdk_rdev_t *rdev; | 300 | mdk_rdev_t *rdev; |
| 301 | int i; | 301 | int i; |
| 302 | conf_t *conf; | ||
| 302 | 303 | ||
| 303 | conf_t *conf = kmalloc(sizeof(*conf), GFP_KERNEL); | 304 | if (md_check_no_bitmap(mddev)) |
| 305 | return -EINVAL; | ||
| 306 | |||
| 307 | conf = kmalloc(sizeof(*conf), GFP_KERNEL); | ||
| 304 | if (!conf) | 308 | if (!conf) |
| 305 | return -ENOMEM; | 309 | return -ENOMEM; |
| 306 | 310 | ||
