Assign pointer NULL, not 0.
Approved by: julian (mentor)
This commit is contained in:
parent
5397712a09
commit
659b05c3ca
@ -765,7 +765,7 @@ tunwrite(struct cdev *dev, struct uio *uio, int flag)
|
||||
return (ENOBUFS);
|
||||
mlen = MHLEN;
|
||||
|
||||
top = 0;
|
||||
top = NULL;
|
||||
mp = ⊤
|
||||
while (error == 0 && uio->uio_resid > 0) {
|
||||
m->m_len = min(mlen, uio->uio_resid);
|
||||
|
Loading…
Reference in New Issue
Block a user