diff options
author | Loic Poulain <loic.poulain@intel.com> | 2016-04-04 10:48:13 +0200 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2016-06-15 15:51:47 +0200 |
commit | b85483c524e3f8dda532b5c13b1fb22a5404554c (patch) | |
tree | a338fcf06a9cef0fec4ea93ee50d308ecf16203d /fs/btrfs/Makefile | |
parent | 94e3230bf179f9700e160c0f4a05305cc5299a62 (diff) | |
download | lwn-b85483c524e3f8dda532b5c13b1fb22a5404554c.tar.gz lwn-b85483c524e3f8dda532b5c13b1fb22a5404554c.zip |
Bluetooth: hci_ldisc: Fix null pointer derefence in case of early data
commit 84cb3df02aea4b00405521e67c4c67c2d525c364 upstream.
HCI_UART_PROTO_SET flag is set before hci_uart_set_proto call. If we
receive data from tty layer during this procedure, proto pointer may
not be assigned yet, leading to null pointer dereference in rx method
hci_uart_tty_receive.
This patch fixes this issue by introducing HCI_UART_PROTO_READY flag in
order to avoid any proto operation before proto opening and assignment.
Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'fs/btrfs/Makefile')
0 files changed, 0 insertions, 0 deletions