~ubuntu-branches/ubuntu/saucy/linux-ti-omap4/saucy-proposed

« back to all changes in this revision

Viewing changes to drivers/tty/tty_io.c

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati, Stefan Bader, Upstream Kernel Changes
  • Date: 2012-08-15 17:17:43 UTC
  • Revision ID: package-import@ubuntu.com-20120815171743-h5wnuf51xe7pvdid
Tags: 3.5.0-207.13
[ Paolo Pisati ]

* Start new release

[ Stefan Bader ]

* (config) Enable getabis to use local package copies

[ Upstream Kernel Changes ]

* fixup: gargabe collect iva_seq[0|1] init
* [Config] enable all SND_OMAP_SOC_*s
* fixup: cm2xxx_3xxx.o is needed for omap2_cm_read|write_reg
* fixup: add some snd_soc_dai* helper functions
* fixup: s/snd_soc_dpcm_params/snd_soc_dpcm/g
* fixup: typo, no_host_mode and useless SDP4430 init
* fixup: enable again aess hwmod

Show diffs side-by-side

added added

removed removed

Lines of Context:
855
855
 */
856
856
void no_tty(void)
857
857
{
 
858
        /* FIXME: Review locking here. The tty_lock never covered any race
 
859
           between a new association and proc_clear_tty but possible we need
 
860
           to protect against this anyway */
858
861
        struct task_struct *tsk = current;
859
 
        tty_lock();
860
862
        disassociate_ctty(0);
861
 
        tty_unlock();
862
863
        proc_clear_tty(tsk);
863
864
}
864
865
 
1800
1801
 *
1801
1802
 *      We cannot return driver and index like for the other nodes because
1802
1803
 *      devpts will not work then. It expects inodes to be from devpts FS.
 
1804
 *
 
1805
 *      We need to move to returning a refcounted object from all the lookup
 
1806
 *      paths including this one.
1803
1807
 */
1804
1808
static struct tty_struct *tty_open_current_tty(dev_t device, struct file *filp)
1805
1809
{
1816
1820
        /* noctty = 1; */
1817
1821
        tty_kref_put(tty);
1818
1822
        /* FIXME: we put a reference and return a TTY! */
 
1823
        /* This is only safe because the caller holds tty_mutex */
1819
1824
        return tty;
1820
1825
}
1821
1826