Griffin Kroah-Hartman 538fd3921a Bluetooth: MGMT: Add error handling to pair_device()
hci_conn_params_add() never checks for a NULL value and could lead to a NULL
pointer dereference causing a crash.

Fixed by adding error handling in the function.

Cc: Stable <stable@kernel.org>
Fixes: 5157b8a503fa ("Bluetooth: Fix initializing conn_params in scan phase")
Signed-off-by: Griffin Kroah-Hartman <griffin@kroah.com>
Reported-by: Yiwei Zhang <zhan4630@purdue.edu>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2024-08-15 13:09:35 -04:00
..
2023-02-13 18:34:48 +08:00
2021-04-27 17:05:53 -07:00
2024-03-08 10:22:17 -05:00
2024-07-15 10:11:35 -04:00
2024-03-06 17:22:39 -05:00
2024-06-28 14:32:02 -04:00
2024-07-15 10:11:35 -04:00
2024-07-15 10:11:35 -04:00
2024-05-18 10:32:39 -07:00
2021-06-26 07:12:37 +02:00