Re: [PATCH] tty: make sure a BUG is hit if tty_port will bedestroyed before tty

From: Greg Kroah-Hartman
Date: Fri May 17 2013 - 11:31:45 EST

On Fri, May 17, 2013 at 09:12:08AM +0200, Alexander Holler wrote:
> tty depends on tty_port until tty_release() was called. Make sure a BUG
> will be hit, if tty_port will be destroyed before tty.

So you want to ensure that we crash a machine? No, please never add
BUG() statements to the kernel, unless something _really_ bad is going
to happen if we don't call it. I never want to stop a machine from
running, do you?

I can't take this as-is, why not just fix the root problem?


greg k-h
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at