devfs: fix cclose() crash in devfs error handling
This commit is contained in:
parent
4abb38f177
commit
4a6939c2ce
1 changed files with 1 additions and 1 deletions
|
@ -646,7 +646,7 @@ mconfig(char* a, long n)
|
||||||
Fail:
|
Fail:
|
||||||
for(i = 1; i < cb->nf; i++)
|
for(i = 1; i < cb->nf; i++)
|
||||||
if(idev != nil && idev[i-1] != nil)
|
if(idev != nil && idev[i-1] != nil)
|
||||||
cclose(idev[i]);
|
cclose(idev[i-1]);
|
||||||
if(mp != nil)
|
if(mp != nil)
|
||||||
mdeldev(mp);
|
mdeldev(mp);
|
||||||
free(idev);
|
free(idev);
|
||||||
|
|
Loading…
Reference in a new issue