opuntiaOS - an operating system targeting x86 and ARMv7
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[kernel][procfs] Assert on reading not root inode

+1 -4
+1 -4
kernel/kernel/fs/procfs/procfs.c
··· 25 25 int procfs_read_inode(dentry_t* dentry) 26 26 { 27 27 if (dentry->inode_indx != 2) { 28 - #ifdef PROCFS_DEBUG 29 - log_warn("NOT ROOT ENTRY ID READ IN PROCFS"); 30 - #endif 31 - return -1; 28 + ASSERT("NOT ROOT ENTRY ID READ IN PROCFS"); 32 29 } 33 30 procfs_inode_t* procfs_inode = (procfs_inode_t*)dentry->inode; 34 31 memset((void*)procfs_inode, 0, sizeof(procfs_inode_t));