Commit f2ed8d6
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: 5157b8a ("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>1 parent a7e36fd commit f2ed8d6
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3456 | 3456 | | |
3457 | 3457 | | |
3458 | 3458 | | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
| 3462 | + | |
3459 | 3463 | | |
3460 | 3464 | | |
3461 | 3465 | | |
| |||
0 commit comments