Commit 7096daba authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz
Browse files

Bluetooth: hci_debugfs: Fix not checking conn->debugfs



hci_debugfs_create_conn shall check if conn->debugfs has already been
created and don't attempt to overwrite it.

Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 448a496f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1245,7 +1245,7 @@ void hci_debugfs_create_conn(struct hci_conn *conn)
	struct hci_dev *hdev = conn->hdev;
	char name[6];

	if (IS_ERR_OR_NULL(hdev->debugfs))
	if (IS_ERR_OR_NULL(hdev->debugfs) || conn->debugfs)
		return;

	snprintf(name, sizeof(name), "%u", conn->handle);