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>
Wed, 13 Feb 2013 17:40:35 +0000 (09:40 -0800)
commit03a7ffe4e542310838bac70ef85acc17536b6d7c
tree2649b0ec20b7c3e4df18bf2da2a76dc64c01f94d
parent513b032c98b4b9414aa4e9b4a315cb1bf0380101
pps: Use pps_lookup_dev to reduce ldisc coupling

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pps/clients/pps-ldisc.c