Commit f85e0c5
Bluetooth: hci_intel: add missing tty-device sanity check
commit dcb9cfaa5ea9aa0ec08aeb92582ccfe3e4c719a9 upstream.
Make sure to check the tty-device pointer before looking up the sibling
platform device to avoid dereferencing a NULL-pointer when the tty is
one end of a Unix98 pty.
Fixes: 74cdad3 ("Bluetooth: hci_intel: Add runtime PM support")
Fixes: 1ab1f23 ("Bluetooth: hci_intel: Add support for platform driver")
Cc: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent bf3feec commit f85e0c5
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
| |||
379 | 382 | | |
380 | 383 | | |
381 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
382 | 388 | | |
383 | 389 | | |
384 | 390 | | |
| |||
913 | 919 | | |
914 | 920 | | |
915 | 921 | | |
| 922 | + | |
| 923 | + | |
916 | 924 | | |
917 | 925 | | |
918 | 926 | | |
| |||
1094 | 1102 | | |
1095 | 1103 | | |
1096 | 1104 | | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1097 | 1108 | | |
1098 | 1109 | | |
1099 | 1110 | | |
| |||
1110 | 1121 | | |
1111 | 1122 | | |
1112 | 1123 | | |
1113 | | - | |
| 1124 | + | |
1114 | 1125 | | |
1115 | 1126 | | |
1116 | 1127 | | |
| |||
0 commit comments