Initialize tbuf in newstat_copyout() too.
Reviewed by: phk
This commit is contained in:
parent
bde5d00495
commit
a966b13d67
@ -56,6 +56,7 @@ newstat_copyout(struct stat *buf, void *ubuf)
|
||||
struct cdevsw *cdevsw;
|
||||
dev_t dev;
|
||||
|
||||
bzero(&tbuf, sizeof(tbuf));
|
||||
tbuf.st_dev = uminor(buf->st_dev) | (umajor(buf->st_dev) << 8);
|
||||
tbuf.st_ino = buf->st_ino;
|
||||
tbuf.st_mode = buf->st_mode;
|
||||
|
Loading…
Reference in New Issue
Block a user