getnewbuf: Initialize bp to avoid uninitialized pointer dereference and brelse().
This came in recently in r289279. Coverity CID: 1331561
This commit is contained in:
parent
722eb97ab8
commit
7d7f09674b
@ -2885,6 +2885,7 @@ getnewbuf(struct vnode *vp, int slpflag, int slptimeo, int maxsize, int gbflags)
|
||||
struct buf *bp;
|
||||
bool metadata, reserved;
|
||||
|
||||
bp = NULL;
|
||||
KASSERT((gbflags & (GB_UNMAPPED | GB_KVAALLOC)) != GB_KVAALLOC,
|
||||
("GB_KVAALLOC only makes sense with GB_UNMAPPED"));
|
||||
if (!unmapped_buf_allowed)
|
||||
|
Loading…
Reference in New Issue
Block a user