Skip to content
Commit 32cb08e9 authored by Pavel Skripkin's avatar Pavel Skripkin Committed by Marcel Holtmann
Browse files

Bluetooth: hci_uart: add missing NULL check in h5_enqueue



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.

Reported-by: default avatar <syzbot+b9bd12fbed3485a3e51f@syzkaller.appspotmail.com>
Fixes: d9dd833c

 ("Bluetooth: hci_h5: Add runtime suspend")
Signed-off-by: default avatarPavel Skripkin <paskripkin@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent f63d24ba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment