RE: [RFC PATCH] Input: goodix-berlin - validate the complete IC info misc block

From: Zhang Jiaxi

Date: Sat Nov 14 2026 - 07:56:19 EST


Hi Dmitry,

Thank you for the review, and sorry for the confusing wording.

> What does this mean? What is v165 source?

"v165" was an internal development snapshot identifier used during the
Xiaomi Warsaw bring-up, not an upstream kernel revision. It is irrelevant
to this standalone parser fix, so I have removed that reference from the
v2 commit message.

> I am not sure what you are trying to say here.

Those were internal validation notes that should not have been included
in the upstream submission. I have removed them as well.

The patch only checks that the complete goodix_berlin_ic_info_misc
structure fits within the reported IC info length before accessing
touch_data_addr. Truncated records use the existing invalid_offset path
and return -EINVAL.

I'll send the cleaned-up v2 patch separately after completing its
standalone validation.

Thanks,
Jiaxi