diff options
author | 2015-02-03 10:01:13 +0200 | |
---|---|---|
committer | 2015-02-03 09:02:12 +0100 | |
commit | 88d9077c27d0c1a7c022d9dc987640beecf23560 (patch) | |
tree | 0e72093db43abd243deaf2bdaf054262e7694feb /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Bluetooth: btusb: Add support for Lite-On (04ca) Broadcom based, BCM43142 (diff) | |
download | wireguard-linux-88d9077c27d0c1a7c022d9dc987640beecf23560.tar.xz wireguard-linux-88d9077c27d0c1a7c022d9dc987640beecf23560.zip |
Bluetooth: Fix potential NULL dereference
The bnep_get_device function may be triggered by an ioctl just after a
connection has gone down. In such a case the respective L2CAP chan->conn
pointer will get set to NULL (by l2cap_chan_del). This patch adds a
missing NULL check for this case in the bnep_get_device() function.
Reported-by: Patrik Flykt <patrik.flykt@linux.intel.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions