1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

No, you may not /* FALLTHROUGH */. Not only will you return an incorrect

result, but you'd corrupt the kernel malloc() arena if it weren't for a
small but life-saving optimization in ioctl().

MFC after:	1 week
This commit is contained in:
Dag-Erling Smørgrav 2001-10-22 16:13:38 +00:00
parent 9e90edd49a
commit c193b945eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85320

View File

@ -268,7 +268,7 @@ procfs_ioctl(ap)
break;
case PIOCGFL:
*(unsigned int*)ap->a_data = (unsigned int)procp->p_pfsflags;
/* FALLTHROUGH */
break;
case PIOCSTATUS:
psp = (struct procfs_status *)ap->a_data;
psp->state = (procp->p_step == 0);