From: Gianluca Anzolin Date: Mon, 29 Jul 2013 15:08:08 +0000 (+0200) Subject: Bluetooth: Take proper tty_struct references X-Git-Tag: v3.12-rc1~132^2~84^2^2~54^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=396dc223dd36edd218650d042a07c5e61f022c5b;p=pandora-kernel.git Bluetooth: Take proper tty_struct references In net/bluetooth/rfcomm/tty.c the struct tty_struct is used without taking references. This may lead to a use-after-free of the rfcomm tty. Fix this by taking references properly, using the tty_port_* helpers when possible. The raw assignments of dev->port.tty in rfcomm_tty_open/close are addressed in the later commit 'rfcomm: Implement .activate, .shutdown and .carrier_raised methods'. Signed-off-by: Gianluca Anzolin Reviewed-by: Peter Hurley Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed