BUG_ON() Conversion in fs/fcntl.c
Subsystems (3)
PATCH 7/8 BUG_ON() Conversion in fs/fcntl.c
hi,
this changes if() BUG(); constructs to BUG_ON() which is cleaner and can better optimized away
Signed-off-by Eric Sesterhenn <[email protected]>
fs/fcntl.c renamed from fs/fcntl.c.orig +1 -2
@@ -451,8 +451,7 @@ static void send_sigio_to_task(struct ta/* Make sure we are called with one of the POLL_* reasons, otherwise we could leak kernel stack into userspace. */ -if ((reason & __SI_MASK) != __SI_POLL) -BUG (); +BUG_ON ((reason & __SI_MASK) != __SI_POLL);if (reason -POLL_IN >=NSIGPOLL ) si.si_band = ~0L ;else
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors