Invalid filesystem might cause the bp to be never read.
Noted by: Pedro F. Giffuni <giffunip tutopia com> Obtanined from: NetBSD MFC after: 1 week
This commit is contained in:
parent
8310a1a27a
commit
3c8b687fe1
@ -944,7 +944,8 @@ fillinusemap(pmp)
|
||||
if (readcn == 0)
|
||||
usemap_free(pmp, cn);
|
||||
}
|
||||
brelse(bp);
|
||||
if (bp != NULL)
|
||||
brelse(bp);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user