bluetooth:hci_uart: add missing NULL check in h5_enqueue
This is a fix for issue with id 746-001125: Tanaro: Bluetooth does not work
This is a cherry-pick of the following commit: 141112df59850e0f5e2410828524a1de0bafd7db
Bluetooth: hci_uart: add missing NULL check in h5_enqueue
[ Upstream commit 32cb08e9 ]
Syzbot hit general protection fault in __pm_runtime_resume(). The problem was in missing NULL check.
hu->serdev can be NULL and we should not blindly pass &serdev->dev somewhere, since it will cause GPF.
Edited by Mikhail Vanyulin