CVE-2024-57987: Bluetooth: btrtl: check for NULL in btrtl_setup_realtek()

JIRA: https://issues.redhat.com/browse/RHEL-81268
CVE: CVE-2024-57987

commit 3c15082f3567032d196e8760753373332508c2ca
Author: Max Chou <max.chou@realtek.com>
Date:   Tue Dec 31 14:57:19 2024 +0800

    Bluetooth: btrtl: check for NULL in btrtl_setup_realtek()
    
    If insert an USB dongle which chip is not maintained in ic_id_table, it
    will hit the NULL point accessed. Add a null point check to avoid the
    Kernel Oops.
    
    Fixes: b39910bb54d9 ("Bluetooth: Populate hci_set_hw_info for Intel and Realtek")
    Reviewed-by: Alex Lu <alex_lu@realsil.com.cn>
    Signed-off-by: Max Chou <max.chou@realtek.com>
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>```

Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>

---

<small>Created 2025-02-27 16:51 UTC by backporter - [KWF FAQ](https://red.ht/kernel_workflow_doc) - [Slack #team-kernel-workflow](https://redhat-internal.slack.com/archives/C04LRUPMJQ5) - [Source](https://gitlab.com/cki-project/kernel-workflow/-/blob/main/webhook/utils/backporter.py) - [Documentation](https://gitlab.com/cki-project/kernel-workflow/-/blob/main/docs/README.backporter.md) - [Report an issue](https://gitlab.com/cki-project/kernel-workflow/-/issues/new?issue%5Btitle%5D=backporter%20webhook%20issue)</small>

Merge request reports

Loading