diff options
author | majianpeng <majianpeng@gmail.com> | 2012-05-29 09:21:51 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-05-29 09:21:51 +1000 |
commit | 4687f160276a8f7815675ca758c598d881f04fd7 (patch) | |
tree | b46ccbeafb6ae82f0c37a63004a53ed9342d02c3 /super-intel.c | |
parent | 572d7091f74e28fd2c15de210a57b060dd247dae (diff) |
mdadm: Fix Segmentation fault.
In function write_init_super1():
If "rv = store_super1(st, di->fd)" return error and the di is the last.
Then the di = NULL && rv > 0, so exec:
if (rv)
fprintf(stderr, Name ": Failed to write metadata to%s\n",
di->devname);
will be segmentation fault.
Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
0 files changed, 0 insertions, 0 deletions