]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
VCC panics after guest is deleted.
authorBijan Mottahedeh <bijan.mottahedeh@oracle.com>
Wed, 9 Dec 2015 10:16:57 +0000 (02:16 -0800)
committerAllen Pais <allen.pais@oracle.com>
Fri, 11 Dec 2015 14:26:27 +0000 (19:56 +0530)
VCC sends HUP instead of BREAK.

Orabug: 21086161

Signed-off-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
(cherry picked from commit 15102643e10a87e3f238d225b8459f08240cd014)

drivers/tty/vcc.c

index e1c90ea5ee60f993c669f6e0e5ce01fcc0e892b9..e3fffc2c1eccb024d31ec13ebff2232e1d156a12 100644 (file)
@@ -394,7 +394,7 @@ static ssize_t vcc_sysfs_break_store(struct device *device,
 
        if (sscanf(buf, "%ud", &brk) != 1 || brk != 1)
                rv = -EINVAL;
-       else if (vcc_send_ctl(vcc, VCC_CTL_HUP) < 0)
+       else if (vcc_send_ctl(vcc, VCC_CTL_BREAK) < 0)
                vcc_kick_tx(vcc);
 
        spin_unlock_irqrestore(&vcc->lock, flags);
@@ -561,7 +561,7 @@ static int vcc_remove(struct vio_dev *vdev)
        spin_unlock_irqrestore(&vcc->lock, flags);
 
        if (tty)
-               tty_hangup(tty);
+               tty_vhangup(tty);
 
        tty_unregister_device(vcc_tty_driver, vdev->port_id);