]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
Bluetooth: Force -EIO from tty read/write if .activate() fails
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 10 Feb 2014 01:59:21 +0000 (20:59 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 14 Feb 2014 21:39:32 +0000 (13:39 -0800)
commit5326a4ee982703ddba14a9821fe5cb10d122e1b0
treeaf750c07450faef2f74726c00d00f40baf8b9c26
parentfb856e50900a84dd9f8d50d3882eb4a26ba6ea54
Bluetooth: Force -EIO from tty read/write if .activate() fails

If rfcomm_dlc_open() fails, set tty into error state which returns
-EIO from reads and writes.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Tested-By: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/tty.c