From: Bijan Mottahedeh Date: Wed, 9 Dec 2015 10:16:57 +0000 (-0800) Subject: VCC panics after guest is deleted. X-Git-Tag: v4.1.12-92~198^2~18 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=18fb3b671e49934460d0e431fe4749a1e416eb76;p=users%2Fjedix%2Flinux-maple.git VCC panics after guest is deleted. VCC sends HUP instead of BREAK. Orabug: 21086161 Signed-off-by: Bijan Mottahedeh Reviewed-by: Alexandre Chartre (cherry picked from commit 15102643e10a87e3f238d225b8459f08240cd014) --- diff --git a/drivers/tty/vcc.c b/drivers/tty/vcc.c index e1c90ea5ee60..e3fffc2c1ecc 100644 --- a/drivers/tty/vcc.c +++ b/drivers/tty/vcc.c @@ -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);