diff
+ // Ensure that the buffer length is within expected bounds before processing
+ if (hdev->buffer_length > MAX_BUFFER_LENGTH) {
+     pr_err("Buffer length exceeds maximum allowed limit\n");
+     return;
+ }
  static void qca_tlv_check_data(struct hci_dev *hdev,
