pps: Use pps_lookup_dev to reduce ldisc coupling
authorGeorge Spelvin <linux@horizon.com>
Sun, 10 Feb 2013 09:41:56 +0000 (04:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:30 +0000 (05:38 -0800)
commitde43c8b10f40a8e5bda0a32c9a7edf779c5aac15
treeb347a749be92d26b082651eec58e8fd808a37911
parent60835653a6a1b334cb552f43a4080ba408236a74
pps: Use pps_lookup_dev to reduce ldisc coupling

commit 03a7ffe4e542310838bac70ef85acc17536b6d7c upstream.

Now that N_TTY uses tty->disc_data for its private data,
'subclass' ldiscs cannot use ->disc_data for their own private data.
(This is a regression is v3.8-rc1)

Use pps_lookup_dev to associate the tty with the pps source instead.

This fixes a crashing regression in 3.8-rc1.

Signed-off-by: George Spelvin <linux@horizon.com>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pps/clients/pps-ldisc.c