Add missing case in tmpfs.inode.direntType.

This was discovered by syzkaller.

PiperOrigin-RevId: 325025193
This commit is contained in:
Dean Deng
2020-08-05 08:35:41 -07:00
committed by gVisor bot
parent 0e6f7a12c2
commit a2e129b540
+2
View File
@@ -558,6 +558,8 @@ func (i *inode) direntType() uint8 {
return linux.DT_LNK
case *socketFile:
return linux.DT_SOCK
case *namedPipe:
return linux.DT_FIFO
case *deviceFile:
switch impl.kind {
case vfs.BlockDevice: