[PATCH -next 3/9] tty: Don't reschedule buffer work while closing

2012-12-03 Thread Peter Hurley
Prevent buffer work scheduling when called from n_tty_close(). Since the ldisc has been halted and the tty soon-to-be-destructed, pending work would be accessing an invalid tty and ldisc state. Fixes this: [ 38.05] [ cut here ] [ 38.052113] WARNING: at

[PATCH -next 3/9] tty: Don't reschedule buffer work while closing

2012-12-03 Thread Peter Hurley
Prevent buffer work scheduling when called from n_tty_close(). Since the ldisc has been halted and the tty soon-to-be-destructed, pending work would be accessing an invalid tty and ldisc state. Fixes this: [ 38.05] [ cut here ] [ 38.052113] WARNING: at